v8/test
Andreas Haas 8cbcae37db [wasm] Handle rejected input promise in WebAssembly.compileStreaming
In the implementation of WebAssembly.compileStreaming and
WebAssembly.instantiateStreaming, we did not handle the case where the
input, which is a Promise, gets rejected. When this Promise got
rejected, the Promise returned by compileStreaming remained pending
forever.

With this CL, the rejection object of the input Promise gets forwarded
to the result Promise.

I also extended the --wasm-test-streaming flag to provide
WebAssembly.compileStreaming and WebAssembly.instantiateStreaming
in d8. The difference to the Chrome versions of these function is
that d8 does not know about Response objects. That's why in d8
compileStreaming and instantiateStreaming expect a Promise to an
ArrayBuffer or a TypedArray and not to a Response object.

Cq-Include-Trybots: luci.chromium.try:linux-blink-rel
Bug: chromium:943487
Change-Id: I77f789e9ae5d50ae9c9bc92bf27dbfe338fe0f13
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1535817
Reviewed-by: Ben Titzer <titzer@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60427}
2019-03-25 10:18:23 +00:00
..
benchmarks Reland "Preparing v8 to use with python3 /test" 2019-03-20 09:56:06 +00:00
cctest [wasm simd] Make F32x4Min/Max IEEE 754 compliant 2019-03-22 18:26:23 +00:00
common [wasm-hint] Unit Test for Wasm Compilation Hints Decoder 2019-03-20 10:49:46 +00:00
debugger [nojit] Auto-skip --opt tests in jitless mode 2019-03-06 12:45:17 +00:00
fuzzer [wasm][fuzzer] Run micro tasks after each fuzzer execution 2019-03-15 14:23:45 +00:00
inspector Reland "[inspector] Allow limiting the total size of collected scripts." 2019-03-16 06:08:17 +00:00
intl [Intl] Implement proposal-intl-DateTimeFormat-formatRange 2019-03-24 16:35:01 +00:00
js-perf-test Remove old JSTests config 2019-03-21 21:16:02 +00:00
memory
message [parser] Improve parse error message for missing name in FunctionDeclaration 2019-03-20 16:46:29 +00:00
mjsunit [wasm] Handle rejected input promise in WebAssembly.compileStreaming 2019-03-25 10:18:23 +00:00
mkgrokdump Make mkgrokdump depend on the page size 2019-03-18 17:49:48 +00:00
mozilla Reland "Preparing v8 to use with python3 /test" 2019-03-20 09:56:06 +00:00
preparser [test] Don't test jitless without embedded-builtins 2019-02-26 14:33:01 +00:00
test262 [test262] Clean up Test262 status file 2019-03-22 23:26:49 +00:00
torque [torque] Simplify class and struct construction 2019-02-27 17:36:37 +00:00
unittests Reland "Reland "[regalloc] Introduce deferred fixed ranges"" 2019-03-22 10:49:16 +00:00
wasm-js [testrunner] handle timeout param in file 2019-02-27 17:49:17 +00:00
wasm-spec-tests [wasm] Update spec tests 2019-02-27 10:42:02 +00:00
webkit [parser] Improve parse error message for missing name in FunctionDeclaration 2019-03-20 16:46:29 +00:00
BUILD.gn Add target for common test headers 2019-02-12 09:30:01 +00:00
OWNERS Make tmrts an infra OWNER 2019-02-15 09:02:24 +00:00