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

Issue 7053035: Fix a number of tests that incorrectly used assertUnreachable. (Closed)

Created:
9 years, 6 months ago by Mads Ager (chromium)
Modified:
9 years, 6 months ago
Reviewers:
Rico
CC:
v8-dev
Visibility:
Public.

Description

Fix a number of tests that incorrectly used assertUnreachable. Our testing infrastructure uses exceptions to indicate errors. assertUnreachable therefore throws an exception to indicate that it was reached. Therefore, it cannot be used to check that an exception was thrown using the pattern: try { shouldThrow(); assertUnreachable(); } catch(e) { } Such a test will always pass because assertUnreachable will throw an exception if shouldThrow does not. R=ricow@chromium.org

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -74 lines) Patch
M test/mjsunit/array-reduce.js View 2 chunks +18 lines, -9 lines 0 comments Download
M test/mjsunit/function-call.js View 4 chunks +49 lines, -16 lines 0 comments Download
M test/mjsunit/object-define-property.js View 5 chunks +21 lines, -7 lines 0 comments Download
M test/mjsunit/object-freeze.js View 1 chunk +6 lines, -2 lines 0 comments Download
M test/mjsunit/object-literal.js View 2 chunks +6 lines, -3 lines 0 comments Download
M test/mjsunit/object-seal.js View 1 chunk +6 lines, -2 lines 0 comments Download
M test/mjsunit/property-load-across-eval.js View 2 chunks +12 lines, -8 lines 0 comments Download
M test/mjsunit/regress/regress-1119.js View 1 chunk +0 lines, -1 line 0 comments Download
M test/mjsunit/regress/regress-1130.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/mjsunit/regress/regress-1132.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/mjsunit/regress/regress-1160.js View 1 chunk +7 lines, -12 lines 0 comments Download
M test/mjsunit/regress/regress-1170.js View 1 chunk +10 lines, -3 lines 0 comments Download
M test/mjsunit/regress/regress-1172-bis.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/mjsunit/regress/regress-1327557.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/mjsunit/regress/regress-244.js View 1 1 chunk +3 lines, -2 lines 0 comments Download
M test/mjsunit/strict-mode.js View 1 chunk +3 lines, -1 line 0 comments Download
M test/mjsunit/strict-mode-eval.js View 1 chunk +12 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (chromium)
9 years, 6 months ago (2011-05-31 07:25:29 UTC) #1
Rico
LGTM As discussed online this is only a problem if we don't explicitly test the ...
9 years, 6 months ago (2011-05-31 07:59:16 UTC) #2
Mads Ager (chromium)
9 years, 6 months ago (2011-05-31 08:05:51 UTC) #3
http://codereview.chromium.org/7053035/diff/1/test/mjsunit/regress/regress-24...
File test/mjsunit/regress/regress-244.js (right):

http://codereview.chromium.org/7053035/diff/1/test/mjsunit/regress/regress-24...
test/mjsunit/regress/regress-244.js:57: var threw = false;
On 2011/05/31 07:59:16, Rico wrote:
> threw is not used

Removed.

Powered by Google App Engine
This is Rietveld 408576698