<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[266348] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/266348">266348</a></dd>
<dt>Author</dt> <dd>youenn@apple.com</dd>
<dt>Date</dt> <dd>2020-08-31 02:01:55 -0700 (Mon, 31 Aug 2020)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add support for TextDecoderStream
https://bugs.webkit.org/show_bug.cgi?id=215919

Reviewed by Alex Christensen.

LayoutTests/imported/w3c:

* web-platform-tests/encoding/streams/backpressure.any-expected.txt:
* web-platform-tests/encoding/streams/backpressure.any.worker-expected.txt:
* web-platform-tests/encoding/streams/decode-attributes.any-expected.txt:
* web-platform-tests/encoding/streams/decode-attributes.any.worker-expected.txt:
* web-platform-tests/encoding/streams/decode-bad-chunks.any-expected.txt:
* web-platform-tests/encoding/streams/decode-bad-chunks.any.worker-expected.txt:
* web-platform-tests/encoding/streams/decode-ignore-bom.any-expected.txt:
* web-platform-tests/encoding/streams/decode-ignore-bom.any.worker-expected.txt:
* web-platform-tests/encoding/streams/decode-incomplete-input.any-expected.txt:
* web-platform-tests/encoding/streams/decode-incomplete-input.any.worker-expected.txt:
* web-platform-tests/encoding/streams/decode-non-utf8.any-expected.txt:
* web-platform-tests/encoding/streams/decode-non-utf8.any.worker-expected.txt:
* web-platform-tests/encoding/streams/decode-split-character.any-expected.txt:
* web-platform-tests/encoding/streams/decode-split-character.any.worker-expected.txt:
* web-platform-tests/encoding/streams/decode-utf8.any-expected.txt:
* web-platform-tests/encoding/streams/decode-utf8.any.worker-expected.txt:
* web-platform-tests/encoding/streams/encode-bad-chunks.any-expected.txt:
* web-platform-tests/encoding/streams/encode-bad-chunks.any.worker-expected.txt:
* web-platform-tests/encoding/streams/readable-writable-properties.any-expected.txt:
* web-platform-tests/encoding/streams/readable-writable-properties.any.worker-expected.txt:
* web-platform-tests/encoding/streams/realms.window-expected.txt:

Source/WebCore:

Implement TextEncoderStream as a JS built-in.
It is enabled by transform stream runtime flag.

TextDecoderStream takes a TransformStream and TextDecoderStreamEncoder as private slots.
Add TextDecoderStreamEncoder to implement the actual UTF-8 encoding steps, as a wrapper around TextDecoder.

Covered by rebased tests.

* CMakeLists.txt:
* DerivedSources-input.xcfilelist:
* DerivedSources-output.xcfilelist:
* DerivedSources.make:
* Sources.txt:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/WebCoreBuiltinNames.h:
* dom/TextDecoderStream.idl: Added.
* dom/TextDecoderStream.js: Added.
(initializeTextDecoderStream):
(getter.encoding):
(getter.fatal):
(getter.ignoreBOM):
(getter.readable):
(getter.writable):
* dom/TextDecoderStreamDecoder.cpp: Added.
(WebCore::TextDecoderStreamDecoder::create):
(WebCore::TextDecoderStreamDecoder::TextDecoderStreamDecoder):
(WebCore::TextDecoderStreamDecoder::decode):
(WebCore::TextDecoderStreamDecoder::flush):
* dom/TextDecoderStreamDecoder.h: Added.
(WebCore::TextDecoderStreamDecoder::encoding const):
* dom/TextDecoderStreamDecoder.idl: Added.

LayoutTests:

* TestExpectations:
Unskipping encoding tests except legacy-* tests which are big and slow.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsTestExpectations">trunk/LayoutTests/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingidlharnessanyexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness.any-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingidlharnessanyworkerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness.any.worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsbackpressureanyexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/backpressure.any-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsbackpressureanyworkerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/backpressure.any.worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeattributesanyexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-attributes.any-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeattributesanyworkerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-attributes.any.worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodebadchunksanyexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-bad-chunks.any-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodebadchunksanyworkerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-bad-chunks.any.worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeignorebomanyexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeignorebomanyworkerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any.worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeincompleteinputanyexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-incomplete-input.any-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeincompleteinputanyhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-incomplete-input.any.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeincompleteinputanyworkerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-incomplete-input.any.worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodenonutf8anyexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-non-utf8.any-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodenonutf8anyworkerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-non-utf8.any.worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodesplitcharacteranyexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-split-character.any-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodesplitcharacteranyworkerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-split-character.any.worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeutf8anyexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-utf8.any-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeutf8anyworkerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-utf8.any.worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsencodebadchunksanyexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/encode-bad-chunks.any-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsencodebadchunksanyworkerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/encode-bad-chunks.any.worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsreadablewritablepropertiesanyexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/readable-writable-properties.any-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsreadablewritablepropertiesanyworkerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/readable-writable-properties.any.worker-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsrealmswindowexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/realms.window-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreCMakeListstxt">trunk/Source/WebCore/CMakeLists.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreDerivedSourcesinputxcfilelist">trunk/Source/WebCore/DerivedSources-input.xcfilelist</a></li>
<li><a href="#trunkSourceWebCoreDerivedSourcesoutputxcfilelist">trunk/Source/WebCore/DerivedSources-output.xcfilelist</a></li>
<li><a href="#trunkSourceWebCoreDerivedSourcesmake">trunk/Source/WebCore/DerivedSources.make</a></li>
<li><a href="#trunkSourceWebCoreSourcestxt">trunk/Source/WebCore/Sources.txt</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCorebindingsjsWebCoreBuiltinNamesh">trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoredomTextDecoderStreamidl">trunk/Source/WebCore/dom/TextDecoderStream.idl</a></li>
<li><a href="#trunkSourceWebCoredomTextDecoderStreamjs">trunk/Source/WebCore/dom/TextDecoderStream.js</a></li>
<li><a href="#trunkSourceWebCoredomTextDecoderStreamDecodercpp">trunk/Source/WebCore/dom/TextDecoderStreamDecoder.cpp</a></li>
<li><a href="#trunkSourceWebCoredomTextDecoderStreamDecoderh">trunk/Source/WebCore/dom/TextDecoderStreamDecoder.h</a></li>
<li><a href="#trunkSourceWebCoredomTextDecoderStreamDecoderidl">trunk/Source/WebCore/dom/TextDecoderStreamDecoder.idl</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog      2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/ChangeLog 2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,3 +1,13 @@
</span><ins>+2020-08-31  Youenn Fablet  <youenn@apple.com>
+
+        Add support for TextDecoderStream
+        https://bugs.webkit.org/show_bug.cgi?id=215919
+
+        Reviewed by Alex Christensen.
+
+        * TestExpectations:
+        Unskipping encoding tests except legacy-* tests which are big and slow.
+
</ins><span class="cx"> 2020-08-30  Tim Horton  <timothy_horton@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Remove unused editable image code
</span></span></pre></div>
<a id="trunkLayoutTestsTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/TestExpectations (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/TestExpectations       2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/TestExpectations  2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -951,8 +951,9 @@
</span><span class="cx"> webkit.org/b/179881 imported/w3c/web-platform-tests/encoding/eof-shift_jis.html [ ImageOnlyFailure ]
</span><span class="cx"> 
</span><span class="cx"> # Tests in this directory take > 30 minutes to run on debug bots.
</span><del>-[ Debug ] imported/w3c/web-platform-tests/encoding
-[ Debug ] imported/w3c/web-platform-tests/encoding/streams [ Pass ]
</del><ins>+[ Debug ] imported/w3c/web-platform-tests/encoding/legacy-mb-japanese
+[ Debug ] imported/w3c/web-platform-tests/encoding/legacy-mb-korean
+[ Debug ] imported/w3c/web-platform-tests/encoding/legacy-mb-tchinese
</ins><span class="cx"> 
</span><span class="cx"> # Content encoding sniffing is only supported by CFNetwork.
</span><span class="cx"> http/tests/xmlhttprequest/gzip-content-type-no-content-encoding.html [ Skip ]
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog 2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/ChangeLog    2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,3 +1,32 @@
</span><ins>+2020-08-31  Youenn Fablet  <youenn@apple.com>
+
+        Add support for TextDecoderStream
+        https://bugs.webkit.org/show_bug.cgi?id=215919
+
+        Reviewed by Alex Christensen.
+
+        * web-platform-tests/encoding/streams/backpressure.any-expected.txt:
+        * web-platform-tests/encoding/streams/backpressure.any.worker-expected.txt:
+        * web-platform-tests/encoding/streams/decode-attributes.any-expected.txt:
+        * web-platform-tests/encoding/streams/decode-attributes.any.worker-expected.txt:
+        * web-platform-tests/encoding/streams/decode-bad-chunks.any-expected.txt:
+        * web-platform-tests/encoding/streams/decode-bad-chunks.any.worker-expected.txt:
+        * web-platform-tests/encoding/streams/decode-ignore-bom.any-expected.txt:
+        * web-platform-tests/encoding/streams/decode-ignore-bom.any.worker-expected.txt:
+        * web-platform-tests/encoding/streams/decode-incomplete-input.any-expected.txt:
+        * web-platform-tests/encoding/streams/decode-incomplete-input.any.worker-expected.txt:
+        * web-platform-tests/encoding/streams/decode-non-utf8.any-expected.txt:
+        * web-platform-tests/encoding/streams/decode-non-utf8.any.worker-expected.txt:
+        * web-platform-tests/encoding/streams/decode-split-character.any-expected.txt:
+        * web-platform-tests/encoding/streams/decode-split-character.any.worker-expected.txt:
+        * web-platform-tests/encoding/streams/decode-utf8.any-expected.txt:
+        * web-platform-tests/encoding/streams/decode-utf8.any.worker-expected.txt:
+        * web-platform-tests/encoding/streams/encode-bad-chunks.any-expected.txt:
+        * web-platform-tests/encoding/streams/encode-bad-chunks.any.worker-expected.txt:
+        * web-platform-tests/encoding/streams/readable-writable-properties.any-expected.txt:
+        * web-platform-tests/encoding/streams/readable-writable-properties.any.worker-expected.txt:
+        * web-platform-tests/encoding/streams/realms.window-expected.txt:
+
</ins><span class="cx"> 2020-08-30  Youenn Fablet  <youenn@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Add support for TextEncoderStream
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingidlharnessanyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness.any-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness.any-expected.txt   2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness.any-expected.txt      2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -40,17 +40,17 @@
</span><span class="cx"> FAIL TextEncoder interface: new TextEncoder() must inherit property "encodeInto(USVString, Uint8Array)" with the proper type assert_inherits: property "encodeInto" not found in prototype chain
</span><span class="cx"> FAIL TextEncoder interface: calling encodeInto(USVString, Uint8Array) on new TextEncoder() with too few arguments must throw TypeError assert_inherits: property "encodeInto" not found in prototype chain
</span><span class="cx"> PASS TextEncoder interface: new TextEncoder() must inherit property "encoding" with the proper type 
</span><del>-FAIL TextDecoderStream interface: existence and properties of interface object assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface object length assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface object name assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: existence and properties of interface prototype object assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: attribute encoding assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: attribute fatal assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: attribute ignoreBOM assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: attribute readable assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: attribute writable assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
</del><ins>+PASS TextDecoderStream interface: existence and properties of interface object 
+PASS TextDecoderStream interface object length 
+PASS TextDecoderStream interface object name 
+PASS TextDecoderStream interface: existence and properties of interface prototype object 
+PASS TextDecoderStream interface: existence and properties of interface prototype object's "constructor" property 
+PASS TextDecoderStream interface: existence and properties of interface prototype object's @@unscopables property 
+PASS TextDecoderStream interface: attribute encoding 
+PASS TextDecoderStream interface: attribute fatal 
+PASS TextDecoderStream interface: attribute ignoreBOM 
+PASS TextDecoderStream interface: attribute readable 
+PASS TextDecoderStream interface: attribute writable 
</ins><span class="cx"> PASS TextEncoderStream interface: existence and properties of interface object 
</span><span class="cx"> PASS TextEncoderStream interface object length 
</span><span class="cx"> PASS TextEncoderStream interface object name 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingidlharnessanyworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness.any.worker-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness.any.worker-expected.txt    2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/idlharness.any.worker-expected.txt       2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -40,17 +40,17 @@
</span><span class="cx"> FAIL TextEncoder interface: new TextEncoder() must inherit property "encodeInto(USVString, Uint8Array)" with the proper type assert_inherits: property "encodeInto" not found in prototype chain
</span><span class="cx"> FAIL TextEncoder interface: calling encodeInto(USVString, Uint8Array) on new TextEncoder() with too few arguments must throw TypeError assert_inherits: property "encodeInto" not found in prototype chain
</span><span class="cx"> PASS TextEncoder interface: new TextEncoder() must inherit property "encoding" with the proper type 
</span><del>-FAIL TextDecoderStream interface: existence and properties of interface object assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface object length assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface object name assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: existence and properties of interface prototype object assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: attribute encoding assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: attribute fatal assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: attribute ignoreBOM assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: attribute readable assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
-FAIL TextDecoderStream interface: attribute writable assert_own_property: self does not have own property "TextDecoderStream" expected property "TextDecoderStream" missing
</del><ins>+PASS TextDecoderStream interface: existence and properties of interface object 
+PASS TextDecoderStream interface object length 
+PASS TextDecoderStream interface object name 
+PASS TextDecoderStream interface: existence and properties of interface prototype object 
+PASS TextDecoderStream interface: existence and properties of interface prototype object's "constructor" property 
+PASS TextDecoderStream interface: existence and properties of interface prototype object's @@unscopables property 
+PASS TextDecoderStream interface: attribute encoding 
+PASS TextDecoderStream interface: attribute fatal 
+PASS TextDecoderStream interface: attribute ignoreBOM 
+PASS TextDecoderStream interface: attribute readable 
+PASS TextDecoderStream interface: attribute writable 
</ins><span class="cx"> PASS TextEncoderStream interface: existence and properties of interface object 
</span><span class="cx"> PASS TextEncoderStream interface object length 
</span><span class="cx"> PASS TextEncoderStream interface object name 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsbackpressureanyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/backpressure.any-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/backpressure.any-expected.txt 2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/backpressure.any-expected.txt    2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> 
</span><del>-FAIL write() should not complete until read relieves backpressure for TextDecoderStream promise_test: Unhandled rejection with value: object "TypeError: undefined is not a constructor (evaluating 'new self[streamClass.name]()')"
-FAIL additional writes should wait for backpressure to be relieved for class TextDecoderStream promise_test: Unhandled rejection with value: object "TypeError: undefined is not a constructor (evaluating 'new self[streamClass.name]()')"
</del><ins>+PASS write() should not complete until read relieves backpressure for TextDecoderStream 
+PASS additional writes should wait for backpressure to be relieved for class TextDecoderStream 
</ins><span class="cx"> PASS write() should not complete until read relieves backpressure for TextEncoderStream 
</span><span class="cx"> PASS additional writes should wait for backpressure to be relieved for class TextEncoderStream 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsbackpressureanyworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/backpressure.any.worker-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/backpressure.any.worker-expected.txt  2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/backpressure.any.worker-expected.txt     2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> 
</span><del>-FAIL write() should not complete until read relieves backpressure for TextDecoderStream promise_test: Unhandled rejection with value: object "TypeError: undefined is not a constructor (evaluating 'new self[streamClass.name]()')"
-FAIL additional writes should wait for backpressure to be relieved for class TextDecoderStream promise_test: Unhandled rejection with value: object "TypeError: undefined is not a constructor (evaluating 'new self[streamClass.name]()')"
</del><ins>+PASS write() should not complete until read relieves backpressure for TextDecoderStream 
+PASS additional writes should wait for backpressure to be relieved for class TextDecoderStream 
</ins><span class="cx"> PASS write() should not complete until read relieves backpressure for TextEncoderStream 
</span><span class="cx"> PASS additional writes should wait for backpressure to be relieved for class TextEncoderStream 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeattributesanyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-attributes.any-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-attributes.any-expected.txt    2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-attributes.any-expected.txt       2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,44 +1,30 @@
</span><span class="cx"> 
</span><del>-FAIL encoding attribute should have correct value for 'unicode-1-1-utf-8' Can't find variable: TextDecoderStream
-FAIL encoding attribute should have correct value for 'iso-8859-2' Can't find variable: TextDecoderStream
-FAIL encoding attribute should have correct value for 'ascii' Can't find variable: TextDecoderStream
-FAIL encoding attribute should have correct value for 'utf-16' Can't find variable: TextDecoderStream
-FAIL setting fatal to 'false' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to 'false' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting fatal to '0' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to '0' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting fatal to '' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to '' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting fatal to 'undefined' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to 'undefined' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting fatal to 'null' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to 'null' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting fatal to 'true' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to 'true' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting fatal to '1' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to '1' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting fatal to '[object Object]' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to '[object Object]' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting fatal to '' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to '' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting fatal to 'yes' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to 'yes' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL constructing with an invalid encoding should throw assert_throws_js: the constructor should throw function "() => new TextDecoderStream('')" threw object "ReferenceError: Can't find variable: TextDecoderStream" ("ReferenceError") expected instance of function "function RangeError() {
-    [native code]
-}" ("RangeError")
-FAIL constructing with a non-stringifiable encoding should throw assert_throws_js: the constructor should throw function "() => new TextDecoderStream({
-    toString() { return {}; }
-  })" threw object "ReferenceError: Can't find variable: TextDecoderStream" ("ReferenceError") expected instance of function "function TypeError() {
-    [native code]
-}" ("TypeError")
-FAIL a throwing fatal member should cause the constructor to throw assert_throws_js: the constructor should throw function "() => new TextDecoderStream('utf-8', {
-                     get fatal() { throw new Error(); }
-                   })" threw object "ReferenceError: Can't find variable: TextDecoderStream" ("ReferenceError") expected instance of function "function Error() {
-    [native code]
-}" ("Error")
-FAIL a throwing ignoreBOM member should cause the constructor to throw assert_throws_js: the constructor should throw function "() => new TextDecoderStream('utf-8', {
-                     get ignoreBOM() { throw new Error(); }
-                   })" threw object "ReferenceError: Can't find variable: TextDecoderStream" ("ReferenceError") expected instance of function "function Error() {
-    [native code]
-}" ("Error")
</del><ins>+FAIL encoding attribute should have correct value for 'unicode-1-1-utf-8' assert_equals: encoding should match expected (string) "utf-8" but got (undefined) undefined
+FAIL encoding attribute should have correct value for 'iso-8859-2' assert_equals: encoding should match expected (string) "iso-8859-2" but got (undefined) undefined
+FAIL encoding attribute should have correct value for 'ascii' assert_equals: encoding should match expected (string) "windows-1252" but got (undefined) undefined
+FAIL encoding attribute should have correct value for 'utf-16' assert_equals: encoding should match expected (string) "utf-16le" but got (undefined) undefined
+PASS setting fatal to 'false' should set the attribute to false 
+PASS setting ignoreBOM to 'false' should set the attribute to false 
+PASS setting fatal to '0' should set the attribute to false 
+PASS setting ignoreBOM to '0' should set the attribute to false 
+PASS setting fatal to '' should set the attribute to false 
+PASS setting ignoreBOM to '' should set the attribute to false 
+PASS setting fatal to 'undefined' should set the attribute to false 
+PASS setting ignoreBOM to 'undefined' should set the attribute to false 
+PASS setting fatal to 'null' should set the attribute to false 
+PASS setting ignoreBOM to 'null' should set the attribute to false 
+PASS setting fatal to 'true' should set the attribute to true 
+PASS setting ignoreBOM to 'true' should set the attribute to true 
+PASS setting fatal to '1' should set the attribute to true 
+PASS setting ignoreBOM to '1' should set the attribute to true 
+PASS setting fatal to '[object Object]' should set the attribute to true 
+PASS setting ignoreBOM to '[object Object]' should set the attribute to true 
+PASS setting fatal to '' should set the attribute to true 
+PASS setting ignoreBOM to '' should set the attribute to true 
+PASS setting fatal to 'yes' should set the attribute to true 
+PASS setting ignoreBOM to 'yes' should set the attribute to true 
+PASS constructing with an invalid encoding should throw 
+PASS constructing with a non-stringifiable encoding should throw 
+PASS a throwing fatal member should cause the constructor to throw 
+PASS a throwing ignoreBOM member should cause the constructor to throw 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeattributesanyworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-attributes.any.worker-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-attributes.any.worker-expected.txt     2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-attributes.any.worker-expected.txt        2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,44 +1,30 @@
</span><span class="cx"> 
</span><del>-FAIL encoding attribute should have correct value for 'unicode-1-1-utf-8' Can't find variable: TextDecoderStream
-FAIL encoding attribute should have correct value for 'iso-8859-2' Can't find variable: TextDecoderStream
-FAIL encoding attribute should have correct value for 'ascii' Can't find variable: TextDecoderStream
-FAIL encoding attribute should have correct value for 'utf-16' Can't find variable: TextDecoderStream
-FAIL setting fatal to 'false' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to 'false' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting fatal to '0' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to '0' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting fatal to '' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to '' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting fatal to 'undefined' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to 'undefined' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting fatal to 'null' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to 'null' should set the attribute to false Can't find variable: TextDecoderStream
-FAIL setting fatal to 'true' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to 'true' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting fatal to '1' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to '1' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting fatal to '[object Object]' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to '[object Object]' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting fatal to '' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to '' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting fatal to 'yes' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL setting ignoreBOM to 'yes' should set the attribute to true Can't find variable: TextDecoderStream
-FAIL constructing with an invalid encoding should throw assert_throws_js: the constructor should throw function "() => new TextDecoderStream('')" threw object "ReferenceError: Can't find variable: TextDecoderStream" ("ReferenceError") expected instance of function "function RangeError() {
-    [native code]
-}" ("RangeError")
-FAIL constructing with a non-stringifiable encoding should throw assert_throws_js: the constructor should throw function "() => new TextDecoderStream({
-    toString() { return {}; }
-  })" threw object "ReferenceError: Can't find variable: TextDecoderStream" ("ReferenceError") expected instance of function "function TypeError() {
-    [native code]
-}" ("TypeError")
-FAIL a throwing fatal member should cause the constructor to throw assert_throws_js: the constructor should throw function "() => new TextDecoderStream('utf-8', {
-                     get fatal() { throw new Error(); }
-                   })" threw object "ReferenceError: Can't find variable: TextDecoderStream" ("ReferenceError") expected instance of function "function Error() {
-    [native code]
-}" ("Error")
-FAIL a throwing ignoreBOM member should cause the constructor to throw assert_throws_js: the constructor should throw function "() => new TextDecoderStream('utf-8', {
-                     get ignoreBOM() { throw new Error(); }
-                   })" threw object "ReferenceError: Can't find variable: TextDecoderStream" ("ReferenceError") expected instance of function "function Error() {
-    [native code]
-}" ("Error")
</del><ins>+FAIL encoding attribute should have correct value for 'unicode-1-1-utf-8' assert_equals: encoding should match expected (string) "utf-8" but got (undefined) undefined
+FAIL encoding attribute should have correct value for 'iso-8859-2' assert_equals: encoding should match expected (string) "iso-8859-2" but got (undefined) undefined
+FAIL encoding attribute should have correct value for 'ascii' assert_equals: encoding should match expected (string) "windows-1252" but got (undefined) undefined
+FAIL encoding attribute should have correct value for 'utf-16' assert_equals: encoding should match expected (string) "utf-16le" but got (undefined) undefined
+PASS setting fatal to 'false' should set the attribute to false 
+PASS setting ignoreBOM to 'false' should set the attribute to false 
+PASS setting fatal to '0' should set the attribute to false 
+PASS setting ignoreBOM to '0' should set the attribute to false 
+PASS setting fatal to '' should set the attribute to false 
+PASS setting ignoreBOM to '' should set the attribute to false 
+PASS setting fatal to 'undefined' should set the attribute to false 
+PASS setting ignoreBOM to 'undefined' should set the attribute to false 
+PASS setting fatal to 'null' should set the attribute to false 
+PASS setting ignoreBOM to 'null' should set the attribute to false 
+PASS setting fatal to 'true' should set the attribute to true 
+PASS setting ignoreBOM to 'true' should set the attribute to true 
+PASS setting fatal to '1' should set the attribute to true 
+PASS setting ignoreBOM to '1' should set the attribute to true 
+PASS setting fatal to '[object Object]' should set the attribute to true 
+PASS setting ignoreBOM to '[object Object]' should set the attribute to true 
+PASS setting fatal to '' should set the attribute to true 
+PASS setting ignoreBOM to '' should set the attribute to true 
+PASS setting fatal to 'yes' should set the attribute to true 
+PASS setting ignoreBOM to 'yes' should set the attribute to true 
+PASS constructing with an invalid encoding should throw 
+PASS constructing with a non-stringifiable encoding should throw 
+PASS a throwing fatal member should cause the constructor to throw 
+PASS a throwing ignoreBOM member should cause the constructor to throw 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodebadchunksanyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-bad-chunks.any-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-bad-chunks.any-expected.txt    2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-bad-chunks.any-expected.txt       2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,7 +1,7 @@
</span><span class="cx"> 
</span><del>-FAIL chunk of type undefined should error the stream promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL chunk of type null should error the stream promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL chunk of type numeric should error the stream promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL chunk of type object, not BufferSource should error the stream promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL chunk of type array should error the stream promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
</del><ins>+PASS chunk of type undefined should error the stream 
+PASS chunk of type null should error the stream 
+PASS chunk of type numeric should error the stream 
+PASS chunk of type object, not BufferSource should error the stream 
+PASS chunk of type array should error the stream 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodebadchunksanyworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-bad-chunks.any.worker-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-bad-chunks.any.worker-expected.txt     2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-bad-chunks.any.worker-expected.txt        2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,7 +1,7 @@
</span><span class="cx"> 
</span><del>-FAIL chunk of type undefined should error the stream promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL chunk of type null should error the stream promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL chunk of type numeric should error the stream promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL chunk of type object, not BufferSource should error the stream promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL chunk of type array should error the stream promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
</del><ins>+PASS chunk of type undefined should error the stream 
+PASS chunk of type null should error the stream 
+PASS chunk of type numeric should error the stream 
+PASS chunk of type object, not BufferSource should error the stream 
+PASS chunk of type array should error the stream 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeignorebomanyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any-expected.txt    2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any-expected.txt       2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,14 +1,14 @@
</span><span class="cx"> 
</span><del>-FAIL ignoreBOM should work for encoding utf-8, split at character 0 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-8, split at character 1 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-8, split at character 2 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-8, split at character 3 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16le, split at character 0 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16le, split at character 1 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16le, split at character 2 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16le, split at character 3 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16be, split at character 0 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16be, split at character 1 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16be, split at character 2 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16be, split at character 3 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
</del><ins>+PASS ignoreBOM should work for encoding utf-8, split at character 0 
+FAIL ignoreBOM should work for encoding utf-8, split at character 1 assert_equals: BOM should be stripped expected "abc" but got "abc"
+FAIL ignoreBOM should work for encoding utf-8, split at character 2 assert_equals: BOM should be stripped expected "abc" but got "abc"
+PASS ignoreBOM should work for encoding utf-8, split at character 3 
+PASS ignoreBOM should work for encoding utf-16le, split at character 0 
+FAIL ignoreBOM should work for encoding utf-16le, split at character 1 assert_equals: BOM should be stripped expected "abc" but got "abc"
+PASS ignoreBOM should work for encoding utf-16le, split at character 2 
+FAIL ignoreBOM should work for encoding utf-16le, split at character 3 assert_equals: BOM should be preserved expected "abc" but got "abc"
+PASS ignoreBOM should work for encoding utf-16be, split at character 0 
+FAIL ignoreBOM should work for encoding utf-16be, split at character 1 assert_equals: BOM should be stripped expected "abc" but got "abc"
+PASS ignoreBOM should work for encoding utf-16be, split at character 2 
+FAIL ignoreBOM should work for encoding utf-16be, split at character 3 assert_equals: BOM should be preserved expected "abc" but got "abc"
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeignorebomanyworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any.worker-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any.worker-expected.txt     2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-ignore-bom.any.worker-expected.txt        2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,14 +1,14 @@
</span><span class="cx"> 
</span><del>-FAIL ignoreBOM should work for encoding utf-8, split at character 0 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-8, split at character 1 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-8, split at character 2 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-8, split at character 3 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16le, split at character 0 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16le, split at character 1 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16le, split at character 2 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16le, split at character 3 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16be, split at character 0 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16be, split at character 1 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16be, split at character 2 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL ignoreBOM should work for encoding utf-16be, split at character 3 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
</del><ins>+PASS ignoreBOM should work for encoding utf-8, split at character 0 
+FAIL ignoreBOM should work for encoding utf-8, split at character 1 assert_equals: BOM should be stripped expected "abc" but got "abc"
+FAIL ignoreBOM should work for encoding utf-8, split at character 2 assert_equals: BOM should be stripped expected "abc" but got "abc"
+PASS ignoreBOM should work for encoding utf-8, split at character 3 
+PASS ignoreBOM should work for encoding utf-16le, split at character 0 
+FAIL ignoreBOM should work for encoding utf-16le, split at character 1 assert_equals: BOM should be stripped expected "abc" but got "abc"
+PASS ignoreBOM should work for encoding utf-16le, split at character 2 
+FAIL ignoreBOM should work for encoding utf-16le, split at character 3 assert_equals: BOM should be preserved expected "abc" but got "abc"
+PASS ignoreBOM should work for encoding utf-16be, split at character 0 
+FAIL ignoreBOM should work for encoding utf-16be, split at character 1 assert_equals: BOM should be stripped expected "abc" but got "abc"
+PASS ignoreBOM should work for encoding utf-16be, split at character 2 
+FAIL ignoreBOM should work for encoding utf-16be, split at character 3 assert_equals: BOM should be preserved expected "abc" but got "abc"
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeincompleteinputanyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-incomplete-input.any-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-incomplete-input.any-expected.txt      2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-incomplete-input.any-expected.txt 2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><span class="cx"> 
</span><del>-FAIL incomplete input with error mode "replacement" should end with a replacement character promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL incomplete input with error mode "fatal" should error the stream promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
</del><ins>+PASS incomplete input with error mode "replacement" should end with a replacement character 
+PASS incomplete input with error mode "fatal" should error the stream 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeincompleteinputanyhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-incomplete-input.any.html (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-incomplete-input.any.html      2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-incomplete-input.any.html 2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1 +1 @@
</span><del>-<!-- This file is required for WebKit test infrastructure to run the templated test -->
</del><span class="cx">\ No newline at end of file
</span><ins>+<!-- This file is required for WebKit test infrastructure to run the templated test --><!-- webkit-test-runner [ dumpJSConsoleLogInStdErr=true ] -->
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeincompleteinputanyworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-incomplete-input.any.worker-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-incomplete-input.any.worker-expected.txt       2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-incomplete-input.any.worker-expected.txt  2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><span class="cx"> 
</span><del>-FAIL incomplete input with error mode "replacement" should end with a replacement character promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL incomplete input with error mode "fatal" should error the stream promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
</del><ins>+PASS incomplete input with error mode "replacement" should end with a replacement character 
+PASS incomplete input with error mode "fatal" should error the stream 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodenonutf8anyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-non-utf8.any-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-non-utf8.any-expected.txt      2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-non-utf8.any-expected.txt 2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,12 +1,12 @@
</span><span class="cx"> 
</span><del>-FAIL TextDecoderStream should be able to decode UTF-16BE promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to decode invalid sequences in UTF-16BE promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to reject invalid sequences in UTF-16BE promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to decode UTF-16LE promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to decode invalid sequences in UTF-16LE promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to reject invalid sequences in UTF-16LE promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to decode Shift_JIS promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to decode invalid sequences in Shift_JIS promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to reject invalid sequences in Shift_JIS promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to decode ISO-8859-14 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
</del><ins>+PASS TextDecoderStream should be able to decode UTF-16BE 
+FAIL TextDecoderStream should be able to decode invalid sequences in UTF-16BE assert_equals: output should be replacement character expected "\ufffd" but got "�"
+FAIL TextDecoderStream should be able to reject invalid sequences in UTF-16BE assert_unreached: Should have rejected: readable should be errored Reached unreachable code
+PASS TextDecoderStream should be able to decode UTF-16LE 
+FAIL TextDecoderStream should be able to decode invalid sequences in UTF-16LE assert_equals: output should be replacement character expected "\ufffd" but got "�"
+FAIL TextDecoderStream should be able to reject invalid sequences in UTF-16LE assert_unreached: Should have rejected: readable should be errored Reached unreachable code
+PASS TextDecoderStream should be able to decode Shift_JIS 
+FAIL TextDecoderStream should be able to decode invalid sequences in Shift_JIS assert_equals: output should be replacement character expected "\ufffd" but got "\x1a"
+FAIL TextDecoderStream should be able to reject invalid sequences in Shift_JIS assert_unreached: Should have rejected: readable should be errored Reached unreachable code
+PASS TextDecoderStream should be able to decode ISO-8859-14 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodenonutf8anyworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-non-utf8.any.worker-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-non-utf8.any.worker-expected.txt       2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-non-utf8.any.worker-expected.txt  2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,12 +1,12 @@
</span><span class="cx"> 
</span><del>-FAIL TextDecoderStream should be able to decode UTF-16BE promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to decode invalid sequences in UTF-16BE promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to reject invalid sequences in UTF-16BE promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to decode UTF-16LE promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to decode invalid sequences in UTF-16LE promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to reject invalid sequences in UTF-16LE promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to decode Shift_JIS promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to decode invalid sequences in Shift_JIS promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to reject invalid sequences in Shift_JIS promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL TextDecoderStream should be able to decode ISO-8859-14 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
</del><ins>+PASS TextDecoderStream should be able to decode UTF-16BE 
+FAIL TextDecoderStream should be able to decode invalid sequences in UTF-16BE assert_equals: output should be replacement character expected "\ufffd" but got "�"
+FAIL TextDecoderStream should be able to reject invalid sequences in UTF-16BE assert_unreached: Should have rejected: readable should be errored Reached unreachable code
+PASS TextDecoderStream should be able to decode UTF-16LE 
+FAIL TextDecoderStream should be able to decode invalid sequences in UTF-16LE assert_equals: output should be replacement character expected "\ufffd" but got "�"
+FAIL TextDecoderStream should be able to reject invalid sequences in UTF-16LE assert_unreached: Should have rejected: readable should be errored Reached unreachable code
+PASS TextDecoderStream should be able to decode Shift_JIS 
+FAIL TextDecoderStream should be able to decode invalid sequences in Shift_JIS assert_equals: output should be replacement character expected "\ufffd" but got "\x1a"
+FAIL TextDecoderStream should be able to reject invalid sequences in Shift_JIS assert_unreached: Should have rejected: readable should be errored Reached unreachable code
+PASS TextDecoderStream should be able to decode ISO-8859-14 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodesplitcharacteranyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-split-character.any-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-split-character.any-expected.txt       2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-split-character.any-expected.txt  2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,13 +1,13 @@
</span><span class="cx"> 
</span><del>-FAIL a code point split between chunks should not be emitted until all bytes are available; split point = 2 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL a code point split between chunks should not be emitted until all bytes are available; split point = 3 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL a code point split between chunks should not be emitted until all bytes are available; split point = 4 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL a code point split between chunks should not be emitted until all bytes are available; split point = 5 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL a code point should be emitted as soon as all bytes are available promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 1 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 2 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 3 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 4 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 5 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 6 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
</del><ins>+PASS a code point split between chunks should not be emitted until all bytes are available; split point = 2 
+FAIL a code point split between chunks should not be emitted until all bytes are available; split point = 3 assert_array_equals: the split code point should be in the second chunk of the output lengths differ, expected array ["I ", "💙 streams"] length 2, got ["I 💙 streams"] length 1
+FAIL a code point split between chunks should not be emitted until all bytes are available; split point = 4 assert_array_equals: the split code point should be in the second chunk of the output lengths differ, expected array ["I ", "💙 streams"] length 2, got ["I 💙 streams"] length 1
+FAIL a code point split between chunks should not be emitted until all bytes are available; split point = 5 assert_array_equals: the split code point should be in the second chunk of the output lengths differ, expected array ["I ", "💙 streams"] length 2, got ["I 💙 streams"] length 1
+PASS a code point should be emitted as soon as all bytes are available 
+PASS an empty chunk inside a code point split between chunks should not change the output; split point = 1 
+PASS an empty chunk inside a code point split between chunks should not change the output; split point = 2 
+FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 3 assert_equals: two chunks should be output expected 2 but got 1
+FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 4 assert_equals: two chunks should be output expected 2 but got 1
+FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 5 assert_equals: two chunks should be output expected 2 but got 1
+PASS an empty chunk inside a code point split between chunks should not change the output; split point = 6 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodesplitcharacteranyworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-split-character.any.worker-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-split-character.any.worker-expected.txt        2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-split-character.any.worker-expected.txt   2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,13 +1,13 @@
</span><span class="cx"> 
</span><del>-FAIL a code point split between chunks should not be emitted until all bytes are available; split point = 2 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL a code point split between chunks should not be emitted until all bytes are available; split point = 3 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL a code point split between chunks should not be emitted until all bytes are available; split point = 4 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL a code point split between chunks should not be emitted until all bytes are available; split point = 5 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL a code point should be emitted as soon as all bytes are available promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 1 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 2 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 3 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 4 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 5 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 6 promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
</del><ins>+PASS a code point split between chunks should not be emitted until all bytes are available; split point = 2 
+FAIL a code point split between chunks should not be emitted until all bytes are available; split point = 3 assert_array_equals: the split code point should be in the second chunk of the output lengths differ, expected array ["I ", "💙 streams"] length 2, got ["I 💙 streams"] length 1
+FAIL a code point split between chunks should not be emitted until all bytes are available; split point = 4 assert_array_equals: the split code point should be in the second chunk of the output lengths differ, expected array ["I ", "💙 streams"] length 2, got ["I 💙 streams"] length 1
+FAIL a code point split between chunks should not be emitted until all bytes are available; split point = 5 assert_array_equals: the split code point should be in the second chunk of the output lengths differ, expected array ["I ", "💙 streams"] length 2, got ["I 💙 streams"] length 1
+PASS a code point should be emitted as soon as all bytes are available 
+PASS an empty chunk inside a code point split between chunks should not change the output; split point = 1 
+PASS an empty chunk inside a code point split between chunks should not change the output; split point = 2 
+FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 3 assert_equals: two chunks should be output expected 2 but got 1
+FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 4 assert_equals: two chunks should be output expected 2 but got 1
+FAIL an empty chunk inside a code point split between chunks should not change the output; split point = 5 assert_equals: two chunks should be output expected 2 but got 1
+PASS an empty chunk inside a code point split between chunks should not change the output; split point = 6 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeutf8anyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-utf8.any-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-utf8.any-expected.txt  2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-utf8.any-expected.txt     2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,12 +1,12 @@
</span><span class="cx"> 
</span><del>-FAIL decoding one UTF-8 chunk should give one output string - ArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL decoding an empty chunk should give no output chunks - ArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an initial empty chunk should be ignored - ArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL a trailing empty chunk should be ignored- ArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL decoding one UTF-8 chunk should give one output string - SharedArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL decoding an empty chunk should give no output chunks - SharedArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an initial empty chunk should be ignored - SharedArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL a trailing empty chunk should be ignored- SharedArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL decoding a transferred Uint8Array chunk should give no output promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL decoding a transferred ArrayBuffer chunk should give no output promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
</del><ins>+PASS decoding one UTF-8 chunk should give one output string - ArrayBuffer 
+PASS decoding an empty chunk should give no output chunks - ArrayBuffer 
+PASS an initial empty chunk should be ignored - ArrayBuffer 
+PASS a trailing empty chunk should be ignored- ArrayBuffer 
+PASS decoding one UTF-8 chunk should give one output string - SharedArrayBuffer 
+PASS decoding an empty chunk should give no output chunks - SharedArrayBuffer 
+PASS an initial empty chunk should be ignored - SharedArrayBuffer 
+PASS a trailing empty chunk should be ignored- SharedArrayBuffer 
+PASS decoding a transferred Uint8Array chunk should give no output 
+PASS decoding a transferred ArrayBuffer chunk should give no output 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsdecodeutf8anyworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-utf8.any.worker-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-utf8.any.worker-expected.txt   2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/decode-utf8.any.worker-expected.txt      2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,12 +1,12 @@
</span><span class="cx"> 
</span><del>-FAIL decoding one UTF-8 chunk should give one output string - ArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL decoding an empty chunk should give no output chunks - ArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an initial empty chunk should be ignored - ArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL a trailing empty chunk should be ignored- ArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL decoding one UTF-8 chunk should give one output string - SharedArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL decoding an empty chunk should give no output chunks - SharedArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL an initial empty chunk should be ignored - SharedArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL a trailing empty chunk should be ignored- SharedArrayBuffer promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL decoding a transferred Uint8Array chunk should give no output promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL decoding a transferred ArrayBuffer chunk should give no output promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
</del><ins>+PASS decoding one UTF-8 chunk should give one output string - ArrayBuffer 
+PASS decoding an empty chunk should give no output chunks - ArrayBuffer 
+PASS an initial empty chunk should be ignored - ArrayBuffer 
+PASS a trailing empty chunk should be ignored- ArrayBuffer 
+PASS decoding one UTF-8 chunk should give one output string - SharedArrayBuffer 
+PASS decoding an empty chunk should give no output chunks - SharedArrayBuffer 
+PASS an initial empty chunk should be ignored - SharedArrayBuffer 
+PASS a trailing empty chunk should be ignored- SharedArrayBuffer 
+PASS decoding a transferred Uint8Array chunk should give no output 
+PASS decoding a transferred ArrayBuffer chunk should give no output 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsencodebadchunksanyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/encode-bad-chunks.any-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/encode-bad-chunks.any-expected.txt    2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/encode-bad-chunks.any-expected.txt       2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,8 +1,8 @@
</span><span class="cx"> 
</span><span class="cx"> PASS a chunk that cannot be converted to a string should error the streams 
</span><del>-FAIL input of type undefined should be converted correctly to string promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL input of type null should be converted correctly to string promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL input of type numeric should be converted correctly to string promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL input of type object should be converted correctly to string promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL input of type array should be converted correctly to string promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
</del><ins>+PASS input of type undefined should be converted correctly to string 
+PASS input of type null should be converted correctly to string 
+PASS input of type numeric should be converted correctly to string 
+PASS input of type object should be converted correctly to string 
+PASS input of type array should be converted correctly to string 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsencodebadchunksanyworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/encode-bad-chunks.any.worker-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/encode-bad-chunks.any.worker-expected.txt     2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/encode-bad-chunks.any.worker-expected.txt        2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,8 +1,8 @@
</span><span class="cx"> 
</span><span class="cx"> PASS a chunk that cannot be converted to a string should error the streams 
</span><del>-FAIL input of type undefined should be converted correctly to string promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL input of type null should be converted correctly to string promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL input of type numeric should be converted correctly to string promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL input of type object should be converted correctly to string promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
-FAIL input of type array should be converted correctly to string promise_test: Unhandled rejection with value: object "ReferenceError: Can't find variable: TextDecoderStream"
</del><ins>+PASS input of type undefined should be converted correctly to string 
+PASS input of type null should be converted correctly to string 
+PASS input of type numeric should be converted correctly to string 
+PASS input of type object should be converted correctly to string 
+PASS input of type array should be converted correctly to string 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsreadablewritablepropertiesanyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/readable-writable-properties.any-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/readable-writable-properties.any-expected.txt 2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/readable-writable-properties.any-expected.txt    2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><span class="cx"> 
</span><span class="cx"> PASS TextEncoderStream readable and writable properties must pass brand checks 
</span><del>-FAIL TextDecoderStream readable and writable properties must pass brand checks Can't find variable: TextDecoderStream
</del><ins>+PASS TextDecoderStream readable and writable properties must pass brand checks 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsreadablewritablepropertiesanyworkerexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/readable-writable-properties.any.worker-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/readable-writable-properties.any.worker-expected.txt  2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/readable-writable-properties.any.worker-expected.txt     2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,4 +1,4 @@
</span><span class="cx"> 
</span><span class="cx"> PASS TextEncoderStream readable and writable properties must pass brand checks 
</span><del>-FAIL TextDecoderStream readable and writable properties must pass brand checks Can't find variable: TextDecoderStream
</del><ins>+PASS TextDecoderStream readable and writable properties must pass brand checks 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsencodingstreamsrealmswindowexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/realms.window-expected.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/realms.window-expected.txt    2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/streams/realms.window-expected.txt       2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,20 +1,4 @@
</span><del>-CONSOLE MESSAGE: TypeError: undefined is not a constructor (evaluating 'new parent.constructorRealm.TextDecoderStream()')
-CONSOLE MESSAGE: TypeError: undefined is not a constructor (evaluating 'new parent.constructorRealm.TextDecoderStream')
-CONSOLE MESSAGE: TypeError: undefined is not a constructor (evaluating 'new parent.constructorRealm.TextDecoderStream')
-CONSOLE MESSAGE: TypeError: undefined is not an object (evaluating 'window.realmsId42.writable')
-CONSOLE MESSAGE: TypeError: undefined is not an object (evaluating 'window.realmsId42.readable')
-CONSOLE MESSAGE: TypeError: undefined is not a constructor (evaluating 'new parent.constructorRealm.TextDecoderStream')
-CONSOLE MESSAGE: TypeError: undefined is not an object (evaluating 'window.realmsId50.readable')
-CONSOLE MESSAGE: TypeError: undefined is not an object (evaluating 'window.realmsId50.writable')
-CONSOLE MESSAGE: TypeError: undefined is not a constructor (evaluating 'new parent.constructorRealm.TextDecoderStream')
-CONSOLE MESSAGE: TypeError: undefined is not an object (evaluating 'window.realmsId58.readable')
-CONSOLE MESSAGE: TypeError: undefined is not an object (evaluating 'window.realmsId58.writable')
-CONSOLE MESSAGE: TypeError: undefined is not a constructor (evaluating 'new parent.constructorRealm.TextDecoderStream('utf-8', {fatal: true})')
-CONSOLE MESSAGE: TypeError: undefined is not an object (evaluating 'window.realmsId66.readable')
-CONSOLE MESSAGE: TypeError: undefined is not an object (evaluating 'window.realmsId66.writable')
-CONSOLE MESSAGE: TypeError: undefined is not a constructor (evaluating 'new parent.constructorRealm.TextDecoderStream('utf-8', {fatal: true})')
-CONSOLE MESSAGE: TypeError: undefined is not an object (evaluating 'window.realmsId74.readable')
-CONSOLE MESSAGE: TypeError: undefined is not an object (evaluating 'window.realmsId74.writable')
</del><ins>+CONSOLE MESSAGE: Unhandled Promise Rejection: TypeError: Type error
</ins><span class="cx"> 
</span><span class="cx"> PASS a TextEncoderStream object should be associated with the realm the constructor came from 
</span><span class="cx"> PASS TextEncoderStream's readable and writable attributes should come from the same realm as the constructor definition 
</span><span class="lines">@@ -21,11 +5,11 @@
</span><span class="cx"> PASS the output chunks when read is called after write should come from the same realm as the constructor of TextEncoderStream 
</span><span class="cx"> PASS the output chunks when write is called with a pending read should come from the same realm as the constructor of TextEncoderStream 
</span><span class="cx"> PASS TypeError for unconvertable chunk should come from constructor realm of TextEncoderStream 
</span><del>-FAIL a TextDecoderStream object should be associated with the realm the constructor came from promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'obj.constructor')"
-FAIL TextDecoderStream's readable and writable attributes should come from the same realm as the constructor definition promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'methodRealm[classname].prototype')"
-FAIL the result object when read is called after write should come from the same realm as the constructor of TextDecoderStream promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'result.constructor')"
-FAIL the result object when write is called with a pending read should come from the same realm as the constructor of TextDecoderStream promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'result.constructor')"
-FAIL TypeError for chunk with the wrong type should come from constructor realm of TextDecoderStream assert_unreached: Should have rejected: write TypeError should come from constructor realm Reached unreachable code
</del><ins>+PASS a TextDecoderStream object should be associated with the realm the constructor came from 
+PASS TextDecoderStream's readable and writable attributes should come from the same realm as the constructor definition 
+PASS the result object when read is called after write should come from the same realm as the constructor of TextDecoderStream 
+PASS the result object when write is called with a pending read should come from the same realm as the constructor of TextDecoderStream 
+PASS TypeError for chunk with the wrong type should come from constructor realm of TextDecoderStream 
</ins><span class="cx"> FAIL TypeError for invalid chunk should come from constructor realm of TextDecoderStream assert_unreached: Should have rejected: write TypeError should come from constructor realm Reached unreachable code
</span><del>-FAIL TypeError for incomplete input should come from constructor realm of TextDecoderStream assert_unreached: Should have rejected: close TypeError should come from constructor realm Reached unreachable code
</del><ins>+PASS TypeError for incomplete input should come from constructor realm of TextDecoderStream 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/CMakeLists.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/CMakeLists.txt      2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/Source/WebCore/CMakeLists.txt 2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -818,6 +818,8 @@
</span><span class="cx">     dom/StringCallback.idl
</span><span class="cx">     dom/Text.idl
</span><span class="cx">     dom/TextDecoder.idl
</span><ins>+    dom/TextDecoderStream.idl
+    dom/TextDecoderStreamDecoder.idl
</ins><span class="cx">     dom/TextEncoder.idl
</span><span class="cx">     dom/TextEncoderStream.idl
</span><span class="cx">     dom/TextEncoderStreamEncoder.idl
</span><span class="lines">@@ -1954,6 +1956,7 @@
</span><span class="cx">     ${WEBCORE_DIR}/Modules/streams/WritableStreamDefaultController.js
</span><span class="cx">     ${WEBCORE_DIR}/Modules/streams/WritableStreamDefaultWriter.js
</span><span class="cx">     ${WEBCORE_DIR}/Modules/streams/WritableStreamInternals.js
</span><ins>+    ${WEBCORE_DIR}/dom/TextDecoderStream.js
</ins><span class="cx">     ${WEBCORE_DIR}/dom/TextEncoderStream.js
</span><span class="cx">     ${WEBCORE_DIR}/bindings/js/JSDOMBindingInternals.js
</span><span class="cx"> )
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog   2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/Source/WebCore/ChangeLog      2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1,3 +1,42 @@
</span><ins>+2020-08-31  Youenn Fablet  <youenn@apple.com>
+
+        Add support for TextDecoderStream
+        https://bugs.webkit.org/show_bug.cgi?id=215919
+
+        Reviewed by Alex Christensen.
+
+        Implement TextEncoderStream as a JS built-in.
+        It is enabled by transform stream runtime flag.
+
+        TextDecoderStream takes a TransformStream and TextDecoderStreamEncoder as private slots.
+        Add TextDecoderStreamEncoder to implement the actual UTF-8 encoding steps, as a wrapper around TextDecoder.
+
+        Covered by rebased tests.
+
+        * CMakeLists.txt:
+        * DerivedSources-input.xcfilelist:
+        * DerivedSources-output.xcfilelist:
+        * DerivedSources.make:
+        * Sources.txt:
+        * WebCore.xcodeproj/project.pbxproj:
+        * bindings/js/WebCoreBuiltinNames.h:
+        * dom/TextDecoderStream.idl: Added.
+        * dom/TextDecoderStream.js: Added.
+        (initializeTextDecoderStream):
+        (getter.encoding):
+        (getter.fatal):
+        (getter.ignoreBOM):
+        (getter.readable):
+        (getter.writable):
+        * dom/TextDecoderStreamDecoder.cpp: Added.
+        (WebCore::TextDecoderStreamDecoder::create):
+        (WebCore::TextDecoderStreamDecoder::TextDecoderStreamDecoder):
+        (WebCore::TextDecoderStreamDecoder::decode):
+        (WebCore::TextDecoderStreamDecoder::flush):
+        * dom/TextDecoderStreamDecoder.h: Added.
+        (WebCore::TextDecoderStreamDecoder::encoding const):
+        * dom/TextDecoderStreamDecoder.idl: Added.
+
</ins><span class="cx"> 2020-08-30  Wenson Hsieh  <wenson_hsieh@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Make StyleRareNonInheritedData::mask and StyleBackgroundData::background DataRefs
</span></span></pre></div>
<a id="trunkSourceWebCoreDerivedSourcesinputxcfilelist"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/DerivedSources-input.xcfilelist (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/DerivedSources-input.xcfilelist     2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/Source/WebCore/DerivedSources-input.xcfilelist        2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -738,6 +738,9 @@
</span><span class="cx"> $(PROJECT_DIR)/dom/StringCallback.idl
</span><span class="cx"> $(PROJECT_DIR)/dom/Text.idl
</span><span class="cx"> $(PROJECT_DIR)/dom/TextDecoder.idl
</span><ins>+$(PROJECT_DIR)/dom/TextDecoderStream.idl
+$(PROJECT_DIR)/dom/TextDecoderStream.js
+$(PROJECT_DIR)/dom/TextDecoderStreamDecoder.idl
</ins><span class="cx"> $(PROJECT_DIR)/dom/TextEncoder.idl
</span><span class="cx"> $(PROJECT_DIR)/dom/TextEncoderStream.idl
</span><span class="cx"> $(PROJECT_DIR)/dom/TextEncoderStream.js
</span></span></pre></div>
<a id="trunkSourceWebCoreDerivedSourcesoutputxcfilelist"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/DerivedSources-output.xcfilelist (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/DerivedSources-output.xcfilelist    2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/Source/WebCore/DerivedSources-output.xcfilelist       2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -1934,6 +1934,10 @@
</span><span class="cx"> $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSText.h
</span><span class="cx"> $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSTextDecoder.cpp
</span><span class="cx"> $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSTextDecoder.h
</span><ins>+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSTextDecoderStream.cpp
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSTextDecoderStream.h
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSTextDecoderStreamDecoder.cpp
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSTextDecoderStreamDecoder.h
</ins><span class="cx"> $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSTextEncoder.cpp
</span><span class="cx"> $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSTextEncoder.h
</span><span class="cx"> $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSTextEncoderStream.cpp
</span><span class="lines">@@ -2368,6 +2372,7 @@
</span><span class="cx"> $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/StylePropertyShorthandFunctions.h
</span><span class="cx"> $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/SupplementalDependencies.dep
</span><span class="cx"> $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/SupplementalDependencies.txt
</span><ins>+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/TextDecoderStreamBuiltins.h
</ins><span class="cx"> $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/TextEncoderStreamBuiltins.h
</span><span class="cx"> $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/Touch.idl
</span><span class="cx"> $(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/TouchEvent.idl
</span></span></pre></div>
<a id="trunkSourceWebCoreDerivedSourcesmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/DerivedSources.make (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/DerivedSources.make 2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/Source/WebCore/DerivedSources.make    2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -769,6 +769,8 @@
</span><span class="cx">     $(WebCore)/dom/StringCallback.idl \
</span><span class="cx">     $(WebCore)/dom/Text.idl \
</span><span class="cx">     $(WebCore)/dom/TextDecoder.idl \
</span><ins>+    $(WebCore)/dom/TextDecoderStream.idl \
+    $(WebCore)/dom/TextDecoderStreamDecoder.idl \
</ins><span class="cx">     $(WebCore)/dom/TextEncoder.idl \
</span><span class="cx">     $(WebCore)/dom/TextEncoderStream.idl \
</span><span class="cx">     $(WebCore)/dom/TextEncoderStreamEncoder.idl \
</span><span class="lines">@@ -1782,6 +1784,7 @@
</span><span class="cx">     $(WebCore)/Modules/streams/WritableStreamDefaultController.js \
</span><span class="cx">     $(WebCore)/Modules/streams/WritableStreamDefaultWriter.js \
</span><span class="cx">     $(WebCore)/Modules/streams/WritableStreamInternals.js \
</span><ins>+    $(WebCore)/dom/TextDecoderStream.js \
</ins><span class="cx">     $(WebCore)/dom/TextEncoderStream.js \
</span><span class="cx">     $(WebCore)/bindings/js/JSDOMBindingInternals.js \
</span><span class="cx"> #
</span></span></pre></div>
<a id="trunkSourceWebCoreSourcestxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Sources.txt (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Sources.txt 2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/Source/WebCore/Sources.txt    2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -942,6 +942,7 @@
</span><span class="cx"> dom/TemplateContentDocumentFragment.cpp
</span><span class="cx"> dom/Text.cpp
</span><span class="cx"> dom/TextDecoder.cpp
</span><ins>+dom/TextDecoderStreamDecoder.cpp
</ins><span class="cx"> dom/TextEncoder.cpp
</span><span class="cx"> dom/TextEncoderStreamEncoder.cpp
</span><span class="cx"> dom/TextEvent.cpp
</span><span class="lines">@@ -3488,6 +3489,8 @@
</span><span class="cx"> JSSubtleCrypto.cpp
</span><span class="cx"> JSText.cpp
</span><span class="cx"> JSTextDecoder.cpp
</span><ins>+JSTextDecoderStream.cpp
+JSTextDecoderStreamDecoder.cpp
</ins><span class="cx"> JSTextEncoder.cpp
</span><span class="cx"> JSTextEncoderStream.cpp
</span><span class="cx"> JSTextEncoderStreamEncoder.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj   2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj      2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -7701,6 +7701,11 @@
</span><span class="cx">          41E9DCEA2319CAE800F35949 /* NetworkSendQueue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = NetworkSendQueue.cpp; sourceTree = "<group>"; };
</span><span class="cx">          41F062120F5F192600A07EAC /* InspectorDatabaseResource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorDatabaseResource.h; sourceTree = "<group>"; };
</span><span class="cx">          41F062130F5F192600A07EAC /* InspectorDatabaseResource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorDatabaseResource.cpp; sourceTree = "<group>"; };
</span><ins>+               41F0963424F90DEA0009FB93 /* TextDecoderStreamDecoder.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = TextDecoderStreamDecoder.idl; sourceTree = "<group>"; };
+               41F0963624F90DEB0009FB93 /* TextDecoderStream.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = TextDecoderStream.idl; sourceTree = "<group>"; };
+               41F0963724F90DEB0009FB93 /* TextDecoderStream.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = TextDecoderStream.js; sourceTree = "<group>"; };
+               41F0963824F90DEC0009FB93 /* TextDecoderStreamDecoder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TextDecoderStreamDecoder.h; sourceTree = "<group>"; };
+               41F0963924F90DEC0009FB93 /* TextDecoderStreamDecoder.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = TextDecoderStreamDecoder.cpp; sourceTree = "<group>"; };
</ins><span class="cx">           41F1D21D0EF35C2A00DA8753 /* ScriptCachedFrameData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScriptCachedFrameData.h; sourceTree = "<group>"; };
</span><span class="cx">          41F1D21E0EF35C2A00DA8753 /* ScriptCachedFrameData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ScriptCachedFrameData.cpp; sourceTree = "<group>"; };
</span><span class="cx">          41F2354422F5503300B4FCDB /* RTCDTMFSenderBackend.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RTCDTMFSenderBackend.h; sourceTree = "<group>"; };
</span><span class="lines">@@ -29436,6 +29441,11 @@
</span><span class="cx">                          5CE5D9A01DB897C300CE7A8D /* TextDecoder.cpp */,
</span><span class="cx">                          5CE5D9A11DB897C300CE7A8D /* TextDecoder.h */,
</span><span class="cx">                          5CE5D9A21DB897C300CE7A8D /* TextDecoder.idl */,
</span><ins>+                               41F0963624F90DEB0009FB93 /* TextDecoderStream.idl */,
+                               41F0963724F90DEB0009FB93 /* TextDecoderStream.js */,
+                               41F0963924F90DEC0009FB93 /* TextDecoderStreamDecoder.cpp */,
+                               41F0963824F90DEC0009FB93 /* TextDecoderStreamDecoder.h */,
+                               41F0963424F90DEA0009FB93 /* TextDecoderStreamDecoder.idl */,
</ins><span class="cx">                           5CE5D9A31DB897C300CE7A8D /* TextEncoder.cpp */,
</span><span class="cx">                          5CE5D9A41DB897C300CE7A8D /* TextEncoder.h */,
</span><span class="cx">                          5CE5D9A51DB897C300CE7A8D /* TextEncoder.idl */,
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsWebCoreBuiltinNamesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h (266347 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h   2020-08-31 08:58:34 UTC (rev 266347)
+++ trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h      2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -236,6 +236,8 @@
</span><span class="cx">     macro(StereoPannerNode) \
</span><span class="cx">     macro(StylePropertyMapReadOnly) \
</span><span class="cx">     macro(StylePropertyMap) \
</span><ins>+    macro(TextDecoderStream) \
+    macro(TextDecoderStreamDecoder) \
</ins><span class="cx">     macro(TextEncoderStream) \
</span><span class="cx">     macro(TextEncoderStreamEncoder) \
</span><span class="cx">     macro(TextTrackCue) \
</span><span class="lines">@@ -314,11 +316,14 @@
</span><span class="cx">     macro(createImageBitmap) \
</span><span class="cx">     macro(createReadableStream) \
</span><span class="cx">     macro(customElements) \
</span><ins>+    macro(decode) \
</ins><span class="cx">     macro(disturbed) \
</span><span class="cx">     macro(document) \
</span><span class="cx">     macro(encode) \
</span><ins>+    macro(encoding) \
</ins><span class="cx">     macro(errorSteps) \
</span><span class="cx">     macro(failureKind) \
</span><ins>+    macro(fatal) \
</ins><span class="cx">     macro(fetch) \
</span><span class="cx">     macro(fetchRequest) \
</span><span class="cx">     macro(fillFromJS) \
</span><span class="lines">@@ -333,6 +338,7 @@
</span><span class="cx">     macro(header) \
</span><span class="cx">     macro(highWaterMark) \
</span><span class="cx">     macro(href) \
</span><ins>+    macro(ignoreBOM) \
</ins><span class="cx">     macro(inFlightCloseRequest) \
</span><span class="cx">     macro(inFlightWriteRequest) \
</span><span class="cx">     macro(indexedDB) \
</span><span class="lines">@@ -417,6 +423,8 @@
</span><span class="cx">     macro(structuredCloneArrayBufferView) \
</span><span class="cx">     macro(timeline) \
</span><span class="cx">     macro(top) \
</span><ins>+    macro(textDecoderStreamDecoder) \
+    macro(textDecoderStreamTransform) \
</ins><span class="cx">     macro(textEncoderStreamEncoder) \
</span><span class="cx">     macro(textEncoderStreamTransform) \
</span><span class="cx">     macro(transformAlgorithm) \
</span></span></pre></div>
<a id="trunkSourceWebCoredomTextDecoderStreamidl"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/dom/TextDecoderStream.idl (0 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TextDecoderStream.idl                           (rev 0)
+++ trunk/Source/WebCore/dom/TextDecoderStream.idl      2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1.  Redistributions of source code must retain the above copyright
+ *     notice, this list of conditions and the following disclaimer.
+ * 2.  Redistributions in binary form must reproduce the above copyright
+ *     notice, this list of conditions and the following disclaimer in the
+ *     documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+[
+    EnabledAtRuntime=TransformStreamAPI,
+    Exposed=(Window,Worker),
+    JSBuiltin,
+] interface TextDecoderStream {
+    constructor(optional DOMString label, optional any options);
+
+    readonly attribute DOMString encoding;
+    readonly attribute boolean fatal;
+    readonly attribute boolean ignoreBOM;
+    readonly attribute ReadableStream readable;
+    readonly attribute WritableStream writable;
+};
</ins></span></pre></div>
<a id="trunkSourceWebCoredomTextDecoderStreamjs"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/dom/TextDecoderStream.js (0 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TextDecoderStream.js                            (rev 0)
+++ trunk/Source/WebCore/dom/TextDecoderStream.js       2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -0,0 +1,137 @@
</span><ins>+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1.  Redistributions of source code must retain the above copyright
+ *     notice, this list of conditions and the following disclaimer.
+ * 2.  Redistributions in binary form must reproduce the above copyright
+ *     notice, this list of conditions and the following disclaimer in the
+ *     documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+function initializeTextDecoderStream()
+{
+    "use strict";
+
+    const label = arguments.length >= 1 ? arguments[0] : "utf-8";
+    const options = arguments.length >= 2 ? arguments[1] : { };
+
+    const startAlgorithm = () => {
+        return @Promise.@resolve();
+    };
+    const transformAlgorithm = (chunk) => {
+        const decoder = @getByIdDirectPrivate(this, "textDecoderStreamDecoder");
+        let buffer;
+        try {
+            buffer = decoder.@decode(chunk);
+        } catch (e) {
+            return @Promise.@reject(e);
+        }
+        if (buffer) {
+            const transformStream = @getByIdDirectPrivate(this, "textDecoderStreamTransform");
+            const controller = @getByIdDirectPrivate(transformStream, "controller");
+            @transformStreamDefaultControllerEnqueue(controller, buffer);
+        }
+        return @Promise.@resolve();
+    };
+    const flushAlgorithm = () => {
+        const decoder = @getByIdDirectPrivate(this, "textDecoderStreamDecoder");
+        let buffer;
+        try {
+            buffer = decoder.@flush();
+        } catch (e) {
+            return @Promise.@reject(e);
+        }
+        if (buffer) {
+            const transformStream = @getByIdDirectPrivate(this, "textDecoderStreamTransform");
+            const controller = @getByIdDirectPrivate(transformStream, "controller");
+            @transformStreamDefaultControllerEnqueue(controller, buffer);
+        }
+        return @Promise.@resolve();
+    };
+
+    const transform = @createTransformStream(startAlgorithm, transformAlgorithm, flushAlgorithm);
+    @putByIdDirectPrivate(this, "textDecoderStreamTransform", transform);
+
+    const fatal = !!options.fatal;
+    const ignoreBOM = !!options.ignoreBOM;
+    const decoder = new @TextDecoderStreamDecoder(label, fatal, ignoreBOM);
+
+    @putByIdDirectPrivate(this, "fatal", fatal);
+    @putByIdDirectPrivate(this, "ignoreBOM", ignoreBOM);
+    @putByIdDirectPrivate(this, "encoding", decoder.@encoding);
+    @putByIdDirectPrivate(this, "textDecoderStreamDecoder", decoder);
+
+    return this;
+}
+
+@getter
+function encoding()
+{
+    "use strict";
+
+    if (!@getByIdDirectPrivate(this, "textDecoderStreamTransform"))
+        throw @makeThisTypeError("TextDecoderStream", "encoding");
+
+    return @getByIdDirectPrivate(this, "encoding");
+}
+
+@getter
+function fatal()
+{
+    "use strict";
+
+    if (!@getByIdDirectPrivate(this, "textDecoderStreamTransform"))
+        throw @makeThisTypeError("TextDecoderStream", "fatal");
+
+    return @getByIdDirectPrivate(this, "fatal");
+}
+
+@getter
+function ignoreBOM()
+{
+    "use strict";
+
+    if (!@getByIdDirectPrivate(this, "textDecoderStreamTransform"))
+        throw @makeThisTypeError("TextDecoderStream", "ignoreBOM");
+
+    return @getByIdDirectPrivate(this, "ignoreBOM");
+}
+
+@getter
+function readable()
+{
+    "use strict";
+
+    const transform = @getByIdDirectPrivate(this, "textDecoderStreamTransform");
+    if (!transform)
+        throw @makeThisTypeError("TextDecoderStream", "readable");
+
+    return @getByIdDirectPrivate(transform, "readable");
+}
+
+@getter
+function writable()
+{
+    "use strict";
+
+    const transform = @getByIdDirectPrivate(this, "textDecoderStreamTransform");
+    if (!transform)
+        throw @makeThisTypeError("TextDecoderStream", "writable");
+
+    return @getByIdDirectPrivate(transform, "writable");
+}
</ins></span></pre></div>
<a id="trunkSourceWebCoredomTextDecoderStreamDecodercpp"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/dom/TextDecoderStreamDecoder.cpp (0 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TextDecoderStreamDecoder.cpp                            (rev 0)
+++ trunk/Source/WebCore/dom/TextDecoderStreamDecoder.cpp       2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -0,0 +1,54 @@
</span><ins>+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "TextDecoderStreamDecoder.h"
+
+namespace WebCore {
+
+ExceptionOr<Ref<TextDecoderStreamDecoder>> TextDecoderStreamDecoder::create(const String& label, bool fatal, bool ignoreBOM)
+{
+    auto textDecoder = TextDecoder::create(label, { fatal, ignoreBOM });
+    if (textDecoder.hasException())
+        return textDecoder.releaseException();
+
+    return adoptRef(*new TextDecoderStreamDecoder(textDecoder.releaseReturnValue()));
+}
+
+TextDecoderStreamDecoder::TextDecoderStreamDecoder(Ref<TextDecoder>&& textDecoder)
+    : m_textDecoder(WTFMove(textDecoder))
+{
+}
+
+ExceptionOr<String> TextDecoderStreamDecoder::decode(Optional<BufferSource::VariantType> value)
+{
+    return m_textDecoder->decode(WTFMove(value), { true });
+}
+
+ExceptionOr<String> TextDecoderStreamDecoder::flush()
+{
+    return m_textDecoder->decode({ }, { false });
+}
+
+}
</ins></span></pre></div>
<a id="trunkSourceWebCoredomTextDecoderStreamDecoderh"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/dom/TextDecoderStreamDecoder.h (0 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TextDecoderStreamDecoder.h                              (rev 0)
+++ trunk/Source/WebCore/dom/TextDecoderStreamDecoder.h 2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -0,0 +1,45 @@
</span><ins>+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#pragma once
+
+#include "TextDecoder.h"
+
+namespace WebCore {
+
+class TextDecoderStreamDecoder : public RefCounted<TextDecoderStreamDecoder> {
+public:
+    static ExceptionOr<Ref<TextDecoderStreamDecoder>> create(const String& label, bool fatal, bool ignoreBOM);
+
+    String encoding() const { return m_textDecoder->encoding(); }
+    ExceptionOr<String> decode(Optional<BufferSource::VariantType>);
+    ExceptionOr<String> flush();
+
+private:
+    explicit TextDecoderStreamDecoder(Ref<TextDecoder>&&);
+
+    Ref<TextDecoder> m_textDecoder;
+};
+
+}
</ins></span></pre></div>
<a id="trunkSourceWebCoredomTextDecoderStreamDecoderidl"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/dom/TextDecoderStreamDecoder.idl (0 => 266348)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/TextDecoderStreamDecoder.idl                            (rev 0)
+++ trunk/Source/WebCore/dom/TextDecoderStreamDecoder.idl       2020-08-31 09:01:55 UTC (rev 266348)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1.  Redistributions of source code must retain the above copyright
+ *     notice, this list of conditions and the following disclaimer.
+ * 2.  Redistributions in binary form must reproduce the above copyright
+ *     notice, this list of conditions and the following disclaimer in the
+ *     documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+[
+    EnabledAtRuntime=TransformStreamAPI,
+    Exposed=(Window,Worker),
+    ImplementationLacksVTable,
+    PrivateIdentifier,
+] interface TextDecoderStreamDecoder {
+    [MayThrowException] constructor(DOMString label, boolean fatal, boolean ignoreBOM);
+
+    [PrivateIdentifier] readonly attribute DOMString encoding;
+    [PrivateIdentifier, MayThrowException] DOMString decode(BufferSource source);
+    [PrivateIdentifier, MayThrowException] DOMString flush();
+};
</ins></span></pre>
</div>
</div>

</body>
</html>