Index: test/mjsunit/regress/regress-5295.js |
diff --git a/test/mjsunit/compiler/inline-dead-jscreate.js b/test/mjsunit/regress/regress-5295.js |
similarity index 59% |
copy from test/mjsunit/compiler/inline-dead-jscreate.js |
copy to test/mjsunit/regress/regress-5295.js |
index a9778758c44908f2a79288bd3439c97a0904f448..e635748e78c2d650f0ee26c1581aa4410c1b49f1 100644 |
--- a/test/mjsunit/compiler/inline-dead-jscreate.js |
+++ b/test/mjsunit/regress/regress-5295.js |
@@ -2,13 +2,11 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-var bar = 0; |
- |
-function baz() { return this; } |
+eval('var x; let y; ()=>y'); |
+assertEquals(undefined, x); |
function foo() { |
- bar += 1; |
- if (bar === 2) throw new baz(); |
+ eval('var z = 1; let w; ()=>w'); |
+ return z; |
} |
- |
-foo(); |
+assertEquals(1, foo()); |