<!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>[191446] 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/191446">191446</a></dd>
<dt>Author</dt> <dd>calvaris@igalia.com</dd>
<dt>Date</dt> <dd>2015-10-22 00:51:08 -0700 (Thu, 22 Oct 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>[Streams API] Add writable stream attributes
https://bugs.webkit.org/show_bug.cgi?id=150389

Reviewed by Darin Adler.

Source/WebCore:

This patch adds the three writable stream attributes, which are closed, ready and state. They are implemented
according to the spec.

Current test set suffices, expectations were adjusted accordingly.

* Modules/streams/WritableStream.js:
(initializeWritableStream): Style fix.
(closed):
(ready):
(state): Implemented according to the spec.
* Modules/streams/WritableStreamInternals.js:
(isWritableStream): Implemented according to the spec.

LayoutTests:

Expectations for the implementation of writable stream attributes.

* streams/reference-implementation/brand-checks-expected.txt:
* streams/reference-implementation/count-queuing-strategy-expected.txt:
* streams/reference-implementation/pipe-to-expected.txt:
* streams/reference-implementation/readable-stream-templated-expected.txt:
* streams/reference-implementation/writable-stream-expected.txt:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationbrandchecksexpectedtxt">trunk/LayoutTests/streams/reference-implementation/brand-checks-expected.txt</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationcountqueuingstrategyexpectedtxt">trunk/LayoutTests/streams/reference-implementation/count-queuing-strategy-expected.txt</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationpipetoexpectedtxt">trunk/LayoutTests/streams/reference-implementation/pipe-to-expected.txt</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationreadablestreamtemplatedexpectedtxt">trunk/LayoutTests/streams/reference-implementation/readable-stream-templated-expected.txt</a></li>
<li><a href="#trunkLayoutTestsstreamsreferenceimplementationwritablestreamexpectedtxt">trunk/LayoutTests/streams/reference-implementation/writable-stream-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesstreamsWritableStreamjs">trunk/Source/WebCore/Modules/streams/WritableStream.js</a></li>
<li><a href="#trunkSourceWebCoreModulesstreamsWritableStreamInternalsjs">trunk/Source/WebCore/Modules/streams/WritableStreamInternals.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (191445 => 191446)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-10-22 07:17:20 UTC (rev 191445)
+++ trunk/LayoutTests/ChangeLog        2015-10-22 07:51:08 UTC (rev 191446)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2015-10-22  Xabier Rodriguez Calvar  &lt;calvaris@igalia.com&gt;
+
+        [Streams API] Add writable stream attributes
+        https://bugs.webkit.org/show_bug.cgi?id=150389
+
+        Reviewed by Darin Adler.
+
+        Expectations for the implementation of writable stream attributes.
+
+        * streams/reference-implementation/brand-checks-expected.txt:
+        * streams/reference-implementation/count-queuing-strategy-expected.txt:
+        * streams/reference-implementation/pipe-to-expected.txt:
+        * streams/reference-implementation/readable-stream-templated-expected.txt:
+        * streams/reference-implementation/writable-stream-expected.txt:
+
</ins><span class="cx"> 2015-10-22  Frederic Wang  &lt;fred.wang@free.fr&gt;
</span><span class="cx"> 
</span><span class="cx">         Rollout r190440 for the moment. It broke the build.
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationbrandchecksexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/brand-checks-expected.txt (191445 => 191446)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/brand-checks-expected.txt        2015-10-22 07:17:20 UTC (rev 191445)
+++ trunk/LayoutTests/streams/reference-implementation/brand-checks-expected.txt        2015-10-22 07:51:08 UTC (rev 191446)
</span><span class="lines">@@ -17,9 +17,9 @@
</span><span class="cx"> PASS ReadableStreamController.prototype.close enforces a brand check 
</span><span class="cx"> PASS ReadableStreamController.prototype.enqueue enforces a brand check 
</span><span class="cx"> PASS ReadableStreamController.prototype.error enforces a brand check 
</span><del>-FAIL WritableStream.prototype.closed enforces a brand check closed not implemented
-FAIL WritableStream.prototype.ready enforces a brand check ready not implemented
-FAIL WritableStream.prototype.state enforces a brand check assert_throws: state should throw a TypeError function &quot;function () { getter.call(target); }&quot; threw object &quot;EvalError: state not implemented&quot; (&quot;EvalError&quot;) expected object &quot;TypeError&quot; (&quot;TypeError&quot;)
</del><ins>+PASS WritableStream.prototype.closed enforces a brand check 
+PASS WritableStream.prototype.ready enforces a brand check 
+PASS WritableStream.prototype.state enforces a brand check 
</ins><span class="cx"> FAIL WritableStream.prototype.abort enforces a brand check abort not implemented
</span><span class="cx"> FAIL WritableStream.prototype.write enforces a brand check write not implemented
</span><span class="cx"> FAIL WritableStream.prototype.close enforces a brand check close not implemented
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationcountqueuingstrategyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/count-queuing-strategy-expected.txt (191445 => 191446)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/count-queuing-strategy-expected.txt        2015-10-22 07:17:20 UTC (rev 191445)
+++ trunk/LayoutTests/streams/reference-implementation/count-queuing-strategy-expected.txt        2015-10-22 07:51:08 UTC (rev 191446)
</span><span class="lines">@@ -9,6 +9,6 @@
</span><span class="cx"> PASS Correctly governs a ReadableStreamController's desiredSize property (HWM = 1) 
</span><span class="cx"> PASS Correctly governs a ReadableStreamController's desiredSize property (HWM = 4) 
</span><span class="cx"> PASS Can construct a writable stream with a valid CountQueuingStrategy 
</span><del>-FAIL Correctly governs the value of a WritableStream's state property (HWM = 0) state not implemented
-FAIL Correctly governs the value of a WritableStream's state property (HWM = 4) state not implemented
</del><ins>+FAIL Correctly governs the value of a WritableStream's state property (HWM = 0) write not implemented
+FAIL Correctly governs the value of a WritableStream's state property (HWM = 4) write not implemented
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationpipetoexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/pipe-to-expected.txt (191445 => 191446)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/pipe-to-expected.txt        2015-10-22 07:17:20 UTC (rev 191445)
+++ trunk/LayoutTests/streams/reference-implementation/pipe-to-expected.txt        2015-10-22 07:51:08 UTC (rev 191446)
</span><span class="lines">@@ -1,12 +1,12 @@
</span><span class="cx"> 
</span><del>-FAIL Piping from a ReadableStream from which lots of data are readable synchronously state not implemented
</del><ins>+FAIL Piping from a ReadableStream from which lots of data are readable synchronously pipeTo is not implemented
</ins><span class="cx"> FAIL Piping from a ReadableStream in readable state to a WritableStream in closing state close not implemented
</span><span class="cx"> FAIL Piping from a ReadableStream in readable state to a WritableStream in errored state write not implemented
</span><span class="cx"> FAIL Piping from a ReadableStream in the readable state which becomes closed after pipeTo call to a WritableStream in the writable state pipeTo is not implemented
</span><span class="cx"> FAIL Piping from a ReadableStream in the readable state which becomes errored after pipeTo call to a WritableStream in the writable state pipeTo is not implemented
</span><span class="cx"> FAIL Piping from an empty ReadableStream which becomes non-empty after pipeTo call to a WritableStream in the writable state pipeTo is not implemented
</span><span class="cx"> FAIL Piping from an empty ReadableStream which becomes errored after pipeTo call to a WritableStream in the writable state pipeTo is not implemented
</span><del>-FAIL Piping from an empty ReadableStream to a WritableStream in the writable state which becomes errored after a pipeTo call state not implemented
</del><ins>+FAIL Piping from an empty ReadableStream to a WritableStream in the writable state which becomes errored after a pipeTo call pipeTo is not implemented
</ins><span class="cx"> FAIL Piping from a non-empty ReadableStream to a WritableStream in the waiting state which becomes writable after a pipeTo call write not implemented
</span><span class="cx"> FAIL Piping from a non-empty ReadableStream to a WritableStream in waiting state which becomes errored after a pipeTo call write not implemented
</span><span class="cx"> FAIL Piping from a non-empty ReadableStream which becomes errored after pipeTo call to a WritableStream in the waiting state write not implemented
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationreadablestreamtemplatedexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/readable-stream-templated-expected.txt (191445 => 191446)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/readable-stream-templated-expected.txt        2015-10-22 07:17:20 UTC (rev 191445)
+++ trunk/LayoutTests/streams/reference-implementation/readable-stream-templated-expected.txt        2015-10-22 07:51:08 UTC (rev 191446)
</span><span class="lines">@@ -18,8 +18,8 @@
</span><span class="cx"> PASS cancel() should return a distinct fulfilled promise each time 
</span><span class="cx"> PASS locked should be false 
</span><span class="cx"> PASS getReader() should be OK 
</span><del>-FAIL piping to a WritableStream in the writable state should close the writable stream state not implemented
-FAIL piping to a WritableStream in the writable state with { preventClose: true } should do nothing state not implemented
</del><ins>+FAIL piping to a WritableStream in the writable state should close the writable stream pipeTo is not implemented
+FAIL piping to a WritableStream in the writable state with { preventClose: true } should do nothing pipeTo is not implemented
</ins><span class="cx"> PASS should be able to acquire multiple readers if they are released in succession 
</span><span class="cx"> FAIL should not be able to acquire a second reader if we don't release the first one assert_throws: getting a second reader should throw function &quot;function () { rs.getReader(); }&quot; did not throw
</span><span class="cx"> PASS Running templatedRSClosedReader with ReadableStream reader (closed before getting reader) 
</span><span class="lines">@@ -40,8 +40,8 @@
</span><span class="cx"> PASS cancel() should return a distinct fulfilled promise each time 
</span><span class="cx"> PASS locked should be false 
</span><span class="cx"> PASS getReader() should be OK 
</span><del>-FAIL piping to a WritableStream in the writable state should close the writable stream state not implemented
-FAIL piping to a WritableStream in the writable state with { preventClose: true } should do nothing state not implemented
</del><ins>+FAIL piping to a WritableStream in the writable state should close the writable stream pipeTo is not implemented
+FAIL piping to a WritableStream in the writable state with { preventClose: true } should do nothing pipeTo is not implemented
</ins><span class="cx"> PASS should be able to acquire multiple readers if they are released in succession 
</span><span class="cx"> FAIL should not be able to acquire a second reader if we don't release the first one assert_throws: getting a second reader should throw function &quot;function () { rs.getReader(); }&quot; did not throw
</span><span class="cx"> PASS Running templatedRSClosedReader with ReadableStream reader (closed via cancel after getting reader) 
</span><span class="lines">@@ -52,7 +52,7 @@
</span><span class="cx"> FAIL releasing the lock should cause closed to reject and change identity assert_not_equals: the closed promise should change identity got disallowed value object &quot;[object Promise]&quot;
</span><span class="cx"> PASS cancel() should return a distinct fulfilled promise each time 
</span><span class="cx"> PASS Running templatedRSErrored with ReadableStream (errored via call in start) 
</span><del>-FAIL piping to a WritableStream in the writable state should abort the writable stream state not implemented
</del><ins>+FAIL piping to a WritableStream in the writable state should abort the writable stream pipeTo is not implemented
</ins><span class="cx"> PASS getReader() should return a reader that acts errored 
</span><span class="cx"> PASS read() twice should give the error each time 
</span><span class="cx"> PASS locked should be false 
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx"> PASS cancel() should return a distinct rejected promise each time 
</span><span class="cx"> PASS reader cancel() should return a distinct rejected promise each time 
</span><span class="cx"> PASS Running templatedRSErrored with ReadableStream (errored via returning a rejected promise in start) 
</span><del>-FAIL piping to a WritableStream in the writable state should abort the writable stream state not implemented
</del><ins>+FAIL piping to a WritableStream in the writable state should abort the writable stream pipeTo is not implemented
</ins><span class="cx"> PASS getReader() should return a reader that acts errored 
</span><span class="cx"> PASS read() twice should give the error each time 
</span><span class="cx"> PASS locked should be false 
</span></span></pre></div>
<a id="trunkLayoutTestsstreamsreferenceimplementationwritablestreamexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/streams/reference-implementation/writable-stream-expected.txt (191445 => 191446)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/streams/reference-implementation/writable-stream-expected.txt        2015-10-22 07:17:20 UTC (rev 191445)
+++ trunk/LayoutTests/streams/reference-implementation/writable-stream-expected.txt        2015-10-22 07:51:08 UTC (rev 191446)
</span><span class="lines">@@ -1,14 +1,14 @@
</span><span class="cx"> 
</span><del>-FAIL error argument is given to start method state not implemented
</del><ins>+PASS error argument is given to start method 
</ins><span class="cx"> FAIL Underlying sink's write won't be called until start finishes write not implemented
</span><span class="cx"> FAIL Underlying sink's close won't be called until start finishes close not implemented
</span><span class="cx"> FAIL Fulfillment value of ws.close() call must be undefined even if the underlying sink returns a non-undefined value close not implemented
</span><span class="cx"> PASS Underlying sink's write or close are never invoked if start throws 
</span><span class="cx"> PASS Underlying sink's write or close are never invoked if the promise returned by start is rejected 
</span><span class="cx"> PASS WritableStream can be constructed with no arguments 
</span><del>-FAIL WritableStream instances have the correct methods and properties state not implemented
</del><ins>+PASS WritableStream instances have the correct methods and properties 
</ins><span class="cx"> FAIL WritableStream with simple input, processed asynchronously write not implemented
</span><span class="cx"> FAIL WritableStream with simple input, processed synchronously write not implemented
</span><del>-FAIL WritableStream is writable and ready fulfills immediately if the strategy does not apply backpressure state not implemented
</del><ins>+PASS WritableStream is writable and ready fulfills immediately if the strategy does not apply backpressure 
</ins><span class="cx"> FAIL Fulfillment value of ws.write() call must be undefined even if the underlying sink returns a non-undefined ovalue write not implemented
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (191445 => 191446)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-10-22 07:17:20 UTC (rev 191445)
+++ trunk/Source/WebCore/ChangeLog        2015-10-22 07:51:08 UTC (rev 191446)
</span><span class="lines">@@ -1,3 +1,23 @@
</span><ins>+2015-10-22  Xabier Rodriguez Calvar  &lt;calvaris@igalia.com&gt;
+
+        [Streams API] Add writable stream attributes
+        https://bugs.webkit.org/show_bug.cgi?id=150389
+
+        Reviewed by Darin Adler.
+
+        This patch adds the three writable stream attributes, which are closed, ready and state. They are implemented
+        according to the spec.
+
+        Current test set suffices, expectations were adjusted accordingly.
+
+        * Modules/streams/WritableStream.js:
+        (initializeWritableStream): Style fix.
+        (closed):
+        (ready):
+        (state): Implemented according to the spec.
+        * Modules/streams/WritableStreamInternals.js:
+        (isWritableStream): Implemented according to the spec.
+
</ins><span class="cx"> 2015-10-22  Frederic Wang  &lt;fred.wang@free.fr&gt;
</span><span class="cx"> 
</span><span class="cx">         Rollout r190440 for the moment. It broke the build.
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesstreamsWritableStreamjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/streams/WritableStream.js (191445 => 191446)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/streams/WritableStream.js        2015-10-22 07:17:20 UTC (rev 191445)
+++ trunk/Source/WebCore/Modules/streams/WritableStream.js        2015-10-22 07:51:08 UTC (rev 191446)
</span><span class="lines">@@ -59,9 +59,7 @@
</span><span class="cx">     this.@startedPromise.then(function() {
</span><span class="cx">         _this.@started = true;
</span><span class="cx">         _this.@startedPromise = undefined;
</span><del>-    }, function(r) {
-        error(r);
-    });
</del><ins>+    }, error);
</ins><span class="cx"> 
</span><span class="cx">     return this;
</span><span class="cx"> }
</span><span class="lines">@@ -91,19 +89,28 @@
</span><span class="cx"> {
</span><span class="cx">     &quot;use strict&quot;;
</span><span class="cx"> 
</span><del>-    throw new EvalError(&quot;closed not implemented&quot;);
</del><ins>+    if (!@isWritableStream(this))
+        return Promise.reject(new @TypeError(&quot;The WritableStream.closed getter can only be used on instances of WritableStream&quot;));
+
+    return this.@closedPromise;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function ready()
</span><span class="cx"> {
</span><span class="cx">     &quot;use strict&quot;;
</span><span class="cx"> 
</span><del>-    throw new EvalError(&quot;ready not implemented&quot;);
</del><ins>+    if (!@isWritableStream(this))
+        return Promise.reject(new @TypeError(&quot;The WritableStream.ready getter can only be used on instances of WritableStream&quot;));
+
+    return this.@readyPromise;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function state()
</span><span class="cx"> {
</span><span class="cx">     &quot;use strict&quot;;
</span><span class="cx"> 
</span><del>-    throw new EvalError(&quot;state not implemented&quot;);
</del><ins>+    if (!@isWritableStream(this))
+        throw new @TypeError(&quot;The WritableStream.state getter can only be used on instances of WritableStream&quot;);
+
+    return this.@state;
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesstreamsWritableStreamInternalsjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/streams/WritableStreamInternals.js (191445 => 191446)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/streams/WritableStreamInternals.js        2015-10-22 07:17:20 UTC (rev 191445)
+++ trunk/Source/WebCore/Modules/streams/WritableStreamInternals.js        2015-10-22 07:51:08 UTC (rev 191446)
</span><span class="lines">@@ -27,6 +27,13 @@
</span><span class="cx"> // @optional=STREAMS_API
</span><span class="cx"> // @internals
</span><span class="cx"> 
</span><ins>+function isWritableStream(stream)
+{
+    &quot;use strict&quot;;
+
+    return @isObject(stream) &amp;&amp; !!stream.@underlyingSink;
+}
+
</ins><span class="cx"> function syncWritableStreamStateWithQueue(stream)
</span><span class="cx"> {
</span><span class="cx">     &quot;use strict&quot;;
</span></span></pre>
</div>
</div>

</body>
</html>