Index: test/mjsunit/regress/regress-crbug-135066.js |
diff --git a/test/mjsunit/regress/regress-crbug-135066.js b/test/mjsunit/regress/regress-crbug-135066.js |
index 1aeca8b1a32d678ba7274c60230a77fdda97f6aa..35e9ff8c87c9afaa52a92c397e0069cd08fb6635 100644 |
--- a/test/mjsunit/regress/regress-crbug-135066.js |
+++ b/test/mjsunit/regress/regress-crbug-135066.js |
@@ -29,25 +29,27 @@ |
var filler = "//" + new Array(1024).join('x'); |
// Test strict eval in global context. |
-eval( |
+assertEquals(23, eval( |
"'use strict';" + |
"var x = 23;" + |
"var f = function bozo1() {" + |
" return x;" + |
"};" + |
"assertSame(23, f());" + |
+ "f;" + |
filler |
-); |
+)()); |
// Test default eval in strict context. |
-(function() { |
+assertEquals(42, (function() { |
"use strict"; |
- eval( |
+ return eval( |
"var y = 42;" + |
"var g = function bozo2() {" + |
" return y;" + |
"};" + |
"assertSame(42, g());" + |
+ "g;" + |
filler |
- ); |
-})(); |
+ )(); |
+})()); |