Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(776)

Issue 2525313003: [mjsunit] Change assertThrows such that it can check the exception message. (Closed)

Created:
4 years ago by ahaas
Modified:
4 years ago
Reviewers:
titzer
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -39 lines) Patch
M test/mjsunit/mjsunit.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/regress/regress-2263.js View 1 chunk +24 lines, -0 lines 0 comments Download
M test/mjsunit/wasm/divrem-trap.js View 1 2 1 chunk +0 lines, -23 lines 0 comments Download
M test/mjsunit/wasm/wasm-constants.js View 1 2 1 chunk +2 lines, -15 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
ahaas
4 years ago (2016-11-24 15:33:39 UTC) #1
titzer
https://codereview.chromium.org/2525313003/diff/1/test/mjsunit/mjsunit.js File test/mjsunit/mjsunit.js (right): https://codereview.chromium.org/2525313003/diff/1/test/mjsunit/mjsunit.js#newcode379 test/mjsunit/mjsunit.js:379: assertEquals(e.message, cause_opt); What about checking both the type and ...
4 years ago (2016-11-24 15:37:02 UTC) #4
ahaas
https://codereview.chromium.org/2525313003/diff/1/test/mjsunit/mjsunit.js File test/mjsunit/mjsunit.js (right): https://codereview.chromium.org/2525313003/diff/1/test/mjsunit/mjsunit.js#newcode379 test/mjsunit/mjsunit.js:379: assertEquals(e.message, cause_opt); On 2016/11/24 at 15:37:01, titzer wrote: > ...
4 years ago (2016-11-28 09:47:53 UTC) #7
titzer
On 2016/11/28 09:47:53, ahaas wrote: > https://codereview.chromium.org/2525313003/diff/1/test/mjsunit/mjsunit.js > File test/mjsunit/mjsunit.js (right): > > https://codereview.chromium.org/2525313003/diff/1/test/mjsunit/mjsunit.js#newcode379 > ...
4 years ago (2016-11-28 09:51:32 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2525313003/20001
4 years ago (2016-11-28 10:24:52 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-28 10:26:35 UTC) #17
commit-bot: I haz the power
4 years ago (2016-11-28 10:26:49 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5d5ccb6e45e58d6a03397fe78b8fd4c43351c43e
Cr-Commit-Position: refs/heads/master@{#41302}

Powered by Google App Engine
This is Rietveld 408576698