Index: test/mjsunit/regress/regress-crbug-661949.js |
diff --git a/test/mjsunit/regress/regress-crbug-630923.js b/test/mjsunit/regress/regress-crbug-661949.js |
similarity index 73% |
copy from test/mjsunit/regress/regress-crbug-630923.js |
copy to test/mjsunit/regress/regress-crbug-661949.js |
index ff0d2dd05efbedec15a515545eac2184c36c59f3..e083cae349e7ea7986a5478a590da596e5759d42 100644 |
--- a/test/mjsunit/regress/regress-crbug-630923.js |
+++ b/test/mjsunit/regress/regress-crbug-661949.js |
@@ -4,13 +4,12 @@ |
// Flags: --allow-natives-syntax |
-var o = {}; |
-function bar(o) { |
- return 1 + (o.t ? 1 : 2); |
-} |
-function foo() { |
- bar(o); |
-} |
+var foo = (function() { |
+ 'use asm'; |
+ function foo() { ''[0]; } |
+ return foo; |
+})(); |
+ |
foo(); |
%OptimizeFunctionOnNextCall(foo); |
foo(); |