[wpt-sync] Sync PR 18452 - Stop calling Promise.prototype.then() from StreamPromiseThen()
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 18452 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/18452
Details from upstream follow.
Adam Rice <ricea@chromium.org> wrote:
Stop calling Promise.prototype.then() from StreamPromiseThen()
When on_fulfilled was null, StreamPromiseThen() used
v8::Promise::Catch(), which calls promise.then(), resulting in a call to
Promise.prototype.then which may not be set to the original value.Use the two-argument form of v8::Promise::Then() instead, which doesn't
have the problem.Also add tests to verify that ReadableStream tee() and pipeTo() do not
call Promise.prototype.then().Bug: 992482
Change-Id: I5658f90df864785bfe6c54ae1bce37d7a2af6e0c
Reviewed-on: https://chromium-review.googlesource.com/1755627
WPT-Export-Revision: 636d45fc3f653ed1bf898c4a151d6f6328ed0057
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/bd9eccf812dd
https://hg.mozilla.org/mozilla-central/rev/9b112baf476c
Description
•