Title: [192309] trunk/Source/WebCore
- Revision
- 192309
- Author
- calva...@igalia.com
- Date
- 2015-11-11 05:25:29 -0800 (Wed, 11 Nov 2015)
Log Message
[Streams API] Remove bind usage
https://bugs.webkit.org/show_bug.cgi?id=151104
Reviewed by Youenn Fablet.
Instead of using bind, an inline error function was created.
Internal rework, no tests needed.
* Modules/streams/WritableStream.js:
(error):
(initializeWritableStream):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (192308 => 192309)
--- trunk/Source/WebCore/ChangeLog 2015-11-11 10:17:20 UTC (rev 192308)
+++ trunk/Source/WebCore/ChangeLog 2015-11-11 13:25:29 UTC (rev 192309)
@@ -1,3 +1,18 @@
+2015-11-11 Xabier Rodriguez Calvar <calva...@igalia.com>
+
+ [Streams API] Remove bind usage
+ https://bugs.webkit.org/show_bug.cgi?id=151104
+
+ Reviewed by Youenn Fablet.
+
+ Instead of using bind, an inline error function was created.
+
+ Internal rework, no tests needed.
+
+ * Modules/streams/WritableStream.js:
+ (error):
+ (initializeWritableStream):
+
2015-11-10 Brady Eidson <beid...@apple.com>
Modern IDB: Make indexes actually index.
Modified: trunk/Source/WebCore/Modules/streams/WritableStream.js (192308 => 192309)
--- trunk/Source/WebCore/Modules/streams/WritableStream.js 2015-11-11 10:17:20 UTC (rev 192308)
+++ trunk/Source/WebCore/Modules/streams/WritableStream.js 2015-11-11 13:25:29 UTC (rev 192309)
@@ -53,9 +53,11 @@
@syncWritableStreamStateWithQueue(this);
- const error = @errorWritableStream.bind(this);
+ const _this = this;
+ function error(e) {
+ @errorWritableStream.@call(_this, e);
+ };
this.@startedPromise = @Promise.@resolve(@invokeOrNoop(underlyingSink, "start", [error]));
- const _this = this;
@Promise.prototype.@then.@call(this.@startedPromise, function() {
_this.@started = true;
_this.@startedPromise = undefined;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes