Index: test/mjsunit/regress/regress-411237.js |
diff --git a/test/mjsunit/regress/regress-347906.js b/test/mjsunit/regress/regress-411237.js |
similarity index 61% |
copy from test/mjsunit/regress/regress-347906.js |
copy to test/mjsunit/regress/regress-411237.js |
index c751618928c93015679087ee1b500637657aa341..8b75ba3015612ad9699f468862f79cde1fb77731 100644 |
--- a/test/mjsunit/regress/regress-347906.js |
+++ b/test/mjsunit/regress/regress-411237.js |
@@ -4,11 +4,12 @@ |
// Flags: --allow-natives-syntax --harmony |
-function foo() { |
- return Math.clz32(12.34); |
-} |
+try { |
+ %OptimizeFunctionOnNextCall(print); |
+} catch(e) { } |
-foo(); |
-foo(); |
-%OptimizeFunctionOnNextCall(foo); |
-foo(); |
+try { |
+ function* f() { |
+ } |
+ %OptimizeFunctionOnNextCall(f); |
+} catch(e) { } |