Index: test/mjsunit/regress/regress-crbug-658528.js |
diff --git a/test/mjsunit/ignition/dead-code-source-position.js b/test/mjsunit/regress/regress-crbug-658528.js |
similarity index 73% |
copy from test/mjsunit/ignition/dead-code-source-position.js |
copy to test/mjsunit/regress/regress-crbug-658528.js |
index 95bb9183b880229a703e58503e9aec2a673015aa..a6b07482b7fd3de346394b91384aa9cbe0dc4122 100644 |
--- a/test/mjsunit/ignition/dead-code-source-position.js |
+++ b/test/mjsunit/regress/regress-crbug-658528.js |
@@ -3,7 +3,8 @@ |
// found in the LICENSE file. |
function f() { |
- for (f(x) in []) { f(new f()) } |
+ eval("var x = 1"); |
+ const x = 2; |
} |
-f(); |
+assertThrows(f, SyntaxError); |