Wrap Promise manipulation methods in Stream API
Maximum stack space exceeded exceptions within the WritableStream and ReadableStream implementations can lead to slots being undefined that are expected to contain Promises. This in turn leads to CHECK failures. Protect all calls to V8 Promise intrinsics with checks that the expected Promise is present, and throw an exception if it isn't. Also add a test to verify that a CHECK failure does not occur. Bug: 743082 Change-Id: Iaf89aa2a694600d129021e7e902c6bc02401c8b4 Reviewed-on: https://chromium-review.googlesource.com/579628 Commit-Queue: Takeshi Yoshino <tyoshino@chromium.org> Reviewed-by:Takeshi Yoshino <tyoshino@chromium.org> Cr-Commit-Position: refs/heads/master@{#488605}
Showing
Please register or sign in to comment