Index: test/mjsunit/regress/regress-crbug-505354.js |
diff --git a/test/mjsunit/regress/regress-crbug-489293.js b/test/mjsunit/regress/regress-crbug-505354.js |
similarity index 62% |
copy from test/mjsunit/regress/regress-crbug-489293.js |
copy to test/mjsunit/regress/regress-crbug-505354.js |
index bcfc702df3242265e21f78df62d212814a06c83d..61c40c44dacb4091b482547cffbe6d4b3eeccb32 100644 |
--- a/test/mjsunit/regress/regress-crbug-489293.js |
+++ b/test/mjsunit/regress/regress-crbug-505354.js |
@@ -3,14 +3,12 @@ |
// found in the LICENSE file. |
// Flags: --allow-natives-syntax --turbo-filter=f |
-// Flags: --noanalyze-environment-liveness |
function f() { |
- var x = 0; |
- for (var y = 0; y < 0; ++y) { |
- x = (x + y) | 0; |
- } |
- return unbound; |
+ "use strict"; |
+ try { |
+ for (let i = 0; i < 10; i++) {} |
+ } catch(e) {} |
} |
%OptimizeFunctionOnNextCall(f); |
-assertThrows(f, ReferenceError); |
+f(); |