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

Unified Diff: test/mjsunit/declare-locally.js

Issue 1819123002: Remove support for legacy const, part 1 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased, deleted one more file Created 4 years, 9 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
« no previous file with comments | « test/mjsunit/debug-evaluate-const.js ('k') | test/mjsunit/es6/block-eval-var-over-legacy-const.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/declare-locally.js
diff --git a/test/mjsunit/declare-locally.js b/test/mjsunit/declare-locally.js
index 45d30e09476b4993a2124c57b2cadfa1190f8ed0..f03217e739a1448d2ba83fe624a97ea9a6d6fb45 100644
--- a/test/mjsunit/declare-locally.js
+++ b/test/mjsunit/declare-locally.js
@@ -27,19 +27,13 @@
// Make sure that we're not overwriting global
// properties defined in the prototype chain too
-// early when shadowing them with var/const
+// early when shadowing them with var
// declarations.
// This exercises the code in runtime.cc in
// DeclareGlobal...Locally().
-// Flags: --legacy-const
-
this.__proto__.foo = 42;
-this.__proto__.bar = 87;
eval("assertEquals(undefined, foo); var foo = 87;");
assertEquals(87, foo);
-
-eval("assertEquals(undefined, bar); const bar = 42;");
-assertEquals(42, bar);
« no previous file with comments | « test/mjsunit/debug-evaluate-const.js ('k') | test/mjsunit/es6/block-eval-var-over-legacy-const.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698