Description[mjsunit] Change assertThrows such that it can check the exception message.
Up until now assertThrows allows to check the type field of an
exception, which is, however, a custom field introduced in a single
regression test. With the change assertThrows allows to check the
message field of an exception, which is set for standard V8 exceptions
by default.
I use the new assertThrows to refactor test/mjsunit/wasm/divrem-trap.js
R=titzer@chromium.org
Committed: https://crrev.com/5d5ccb6e45e58d6a03397fe78b8fd4c43351c43e
Cr-Commit-Position: refs/heads/master@{#41302}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Use the assertTraps wrapper. #Patch Set 3 : assertTraps actually exists in wasm-constants.js #
Messages
Total messages: 19 (12 generated)
|