Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: test/mjsunit/regress/regress-5295.js

Issue 2435023002: Use a different map to distinguish eval contexts (Closed)
Patch Set: Crankshaft backends and scope deserialization Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/contexts.cc ('K') | « src/objects-inl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« src/contexts.cc ('K') | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698