Index: test/mjsunit/regress/regress-115452.js |
diff --git a/test/mjsunit/regress/regress-115452.js b/test/mjsunit/regress/regress-115452.js |
index 7e424ed88b049549e62cadd0a1b83e71fc40ff34..e5a4035517fdfc8ff223b7c5b4958ce505550368 100644 |
--- a/test/mjsunit/regress/regress-115452.js |
+++ b/test/mjsunit/regress/regress-115452.js |
@@ -38,11 +38,10 @@ assertSame(1, this.foobl); |
assertFalse(Object.getOwnPropertyDescriptor(this, "foobl").writable); |
print(2) |
-eval("function foobl() {}"); |
+try { |
+ eval("function foobl() {}"); // Should throw. |
+ assertUnreachable(); |
+} catch (e) { |
+ assertInstanceof(e, TypeError); |
+} |
assertSame(1, this.foobl); |
-assertFalse(Object.getOwnPropertyDescriptor(this, "foobl").writable); |
- |
-print(3) |
-eval("function foobl() {}"); |
-assertSame(1, this.foobl); |
-assertFalse(Object.getOwnPropertyDescriptor(this, "foobl").writable); |