|
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
Total comments: 2
|
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
|
Total messages: 3 (0 generated)
|