Index: test/mjsunit/regress/regress-1130.js |
diff --git a/test/mjsunit/regress/regress-1130.js b/test/mjsunit/regress/regress-1130.js |
index 188f3f9214820691a9f989415ff3db59f9b46394..07d5e3d46727e4f8fef105dd895f205d33200a56 100644 |
--- a/test/mjsunit/regress/regress-1130.js |
+++ b/test/mjsunit/regress/regress-1130.js |
@@ -30,9 +30,11 @@ |
Object.prototype.__defineGetter__(0, function() { throw 42; } ); |
+var exception = false; |
try { |
eval("(function() { const x; var x })")(); |
- assertUnreachable(); |
} catch (e) { |
+ exception = true; |
assertTrue(e instanceof TypeError); |
} |
+assertTrue(exception); |