Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(761)

Unified Diff: third_party/WebKit/Source/core/streams/ReadableStream.js

Issue 2796633002: Add "mark promise as handled" change to pipeThrough() (Closed)
Patch Set: Use v8.isPromise instead of instanceof Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/external/wpt/streams/piping/pipe-through.sharedworker-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/streams/ReadableStream.js
diff --git a/third_party/WebKit/Source/core/streams/ReadableStream.js b/third_party/WebKit/Source/core/streams/ReadableStream.js
index 02f1dbaf73f014e0c6f412460466809e181038be..ba4a6b13ca406a4c704e11ce61d0e9515461d577 100644
--- a/third_party/WebKit/Source/core/streams/ReadableStream.js
+++ b/third_party/WebKit/Source/core/streams/ReadableStream.js
@@ -177,7 +177,10 @@
}
pipeThrough({writable, readable}, options) {
- this.pipeTo(writable, options);
+ const promise = this.pipeTo(writable, options);
+ if (v8.isPromise(promise)) {
+ v8.markPromiseAsHandled(promise);
+ }
return readable;
}
« no previous file with comments | « third_party/WebKit/LayoutTests/external/wpt/streams/piping/pipe-through.sharedworker-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698