v8/test
Benedikt Meurer 0195a5eb49 [inspector] Consistently treat promise rejections as side-effecting.
Previously we'd treat %_AsyncFunctionReject (and %AsyncFunctionReject)
as side-effect free (in async functions), but that's not correct, since
promise rejections have side-effects (at the very least triggering the
unhandled promise rejection machinery in the browser).

This required a minor refactoring as previously we'd classify functions
as side-effecting or not depending on whether they contain any calls to
side-effecting intrinsics, no matter whether this call is actually
executed or not. That would break REPL mode however if we'd generally
treat all async functions with %_AsyncFunctionReject intrinsic calls as
side-effecting, so instead of performing the intrinsic checks ahead of
time, we now perform the test at execution time.

Before: https://imgur.com/5BvJP9d.png
After: https://imgur.com/10FanNr.png
Fixed: chromium:1249275
Change-Id: Ib06f945ba21f1e06ee9b13a1363fad342464fd9a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3197712
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77183}
2021-10-01 07:10:34 +00:00
..
benchmarks
bigint [bigint][test] Better random input generation 2021-09-08 15:39:27 +00:00
cctest [wasm] Do not emit loop exits in inlined functions 2021-09-30 15:16:20 +00:00
common [wasm] Move misplaced DCHECK in wasm interpreter 2021-09-28 13:08:49 +00:00
debugger
debugging
fuzzer [fuzzer] Only pick mutable fields for struct.set 2021-09-28 17:39:02 +00:00
fuzzilli
inspector [inspector] Consistently treat promise rejections as side-effecting. 2021-10-01 07:10:34 +00:00
intl [mjsunit] Fix intl test when LC_MESSAGES is set 2021-08-24 10:10:12 +00:00
js-perf-test [class] add microbenchmark for evaluating classes with fields 2021-08-26 10:07:59 +00:00
memory
message Skip {map,set}-grow-failed tests on TSAN 2021-09-27 20:32:29 +00:00
mjsunit [turbofan] No speculative BigInt operations on 32 bit architectures 2021-09-30 15:49:17 +00:00
mkgrokdump [sandbox] Disallow ArrayBuffers outside the VM Cage 2021-08-25 09:52:38 +00:00
mozilla
test262 [builtins] Fixes TypedArray ops behavior when the buffer was detached 2021-09-27 19:08:20 +00:00
torque [torque] Make return types required 2021-09-30 15:54:17 +00:00
unittests [turbofan] Optimize traps after Merge/IfTrue/IfFalse 2021-10-01 05:05:15 +00:00
wasm-api-tests [wasm][test] Cleanup macros 2021-09-24 16:47:54 +00:00
wasm-js [wasm] Update spec tests 2021-09-22 17:12:37 +00:00
wasm-spec-tests [wasm] Update spec tests 2021-09-22 17:12:37 +00:00
webkit [test] Neuter stack-size for tests incompatible with stack-size fuzzing 2021-09-08 09:47:51 +00:00
BUILD.gn
OWNERS