Index: test/mjsunit/regress/regress-4945.js |
diff --git a/test/mjsunit/ignition/dead-code-source-position.js b/test/mjsunit/regress/regress-4945.js |
similarity index 62% |
copy from test/mjsunit/ignition/dead-code-source-position.js |
copy to test/mjsunit/regress/regress-4945.js |
index 95bb9183b880229a703e58503e9aec2a673015aa..8e595e6fde92de611f3398ef510f33a5b740e86a 100644 |
--- a/test/mjsunit/ignition/dead-code-source-position.js |
+++ b/test/mjsunit/regress/regress-4945.js |
@@ -2,8 +2,9 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-function f() { |
- for (f(x) in []) { f(new f()) } |
+function* g(o) { |
+ yield 'x' in o; |
} |
-f(); |
+assertTrue(g({x: 1}).next().value); |
+assertFalse(g({}).next().value); |