v8/test
Clemens Hammacher ac73e1d52b Reland "[test] Check for illegal uses of mjsunit methods"
This is a reland of a9e93572d4

Original change's description:
> [test] Check for illegal uses of mjsunit methods
> 
> The assertThrows and assertDoesNotThrow methods expect either a
> function to execute, or a string to eval. In several tests however we
> accidentally passed the *result* of the statement to be tested instead
> of the code.
> This CL adds check to catch such error early, and removes wrong uses.
> In most places, we do not need to use assertDoesNotThrow anyway,
> because exceptions are handled as test failures.
> 
> Drive-by: Unify catch syntax in mjsunit.js and make sure to propagate
> MjsUnitAssertionErrors correctly.
> 
> R=mathias@chromium.org
> 
> Bug: v8:8562
> Change-Id: I88894a667cbe0570774f748a9a23e8a527887a49
> Reviewed-on: https://chromium-review.googlesource.com/c/1439238
> Reviewed-by: Andreas Haas <ahaas@chromium.org>
> Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#59277}

Bug: v8:8562
Change-Id: I3b26935f7b35302d499266155273ea271bf8151d
Reviewed-on: https://chromium-review.googlesource.com/c/1449792
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59328}
2019-02-04 10:45:18 +00:00
..
benchmarks [Test] CSuite benchmark runner 2018-12-21 13:15:57 +00:00
cctest Reland "[nojit] Check that --jitless is disabled when creating wasm code" 2019-02-04 10:20:08 +00:00
common [wasm] Rename memory.drop and table.drop 2019-01-31 19:27:57 +00:00
debugger Reland "[nojit] Check that --jitless is disabled when creating wasm code" 2019-02-04 10:20:08 +00:00
fuzzer Reland "[nojit] Check that --jitless is disabled when creating wasm code" 2019-02-04 10:20:08 +00:00
inspector Fix preview of set entries 2019-02-03 19:35:11 +00:00
intl [Intl] Implement intl-datetime-style 2019-02-01 03:10:04 +00:00
js-perf-test [test] add performance tests for String#startsWith 2019-01-17 08:23:06 +00:00
memory [snapshot] Remove the builtins snapshot 2018-10-31 10:18:28 +00:00
message Reland "[nojit] Check that --jitless is disabled when creating wasm code" 2019-02-04 10:20:08 +00:00
mjsunit Reland "[test] Check for illegal uses of mjsunit methods" 2019-02-04 10:45:18 +00:00
mkgrokdump [nojit] Don't allocate executable memory in jitless mode 2019-01-10 10:55:48 +00:00
mozilla Revert "[runtime] Reduce spread/apply call max arguments" 2018-11-30 09:54:47 +00:00
preparser [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
test262 Remove always-true --harmony-array-flat runtime flag 2019-02-02 17:54:27 +00:00
torque [torque] Support non-tagged fields in classes 2019-02-04 09:32:59 +00:00
unittests Reland "[nojit] Check that --jitless is disabled when creating wasm code" 2019-02-04 10:20:08 +00:00
wasm-js [wasm] fix js-api module/customSection 2019-01-29 20:05:10 +00:00
wasm-spec-tests [wasm] Update core wasm spec tests 2019-01-29 11:58:25 +00:00
webkit [inspector] Improve uninitialized binding error message 2019-02-02 00:38:06 +00:00
BUILD.gn Reland "[wasm] Add a new wasm-js testsuite to run js-api tests" 2018-10-18 20:18:55 +00:00