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

Unified Diff: test/message/no-legacy-const-3.js

Issue 1218803006: Add a flag for legacy const semantics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add message tests Created 5 years, 5 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/message/no-legacy-const-2.out ('k') | test/message/no-legacy-const-3.out » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/message/no-legacy-const-3.js
diff --git a/test/mjsunit/regress/regress-smi-scanning.js b/test/message/no-legacy-const-3.js
similarity index 81%
copy from test/mjsunit/regress/regress-smi-scanning.js
copy to test/message/no-legacy-const-3.js
index 56cf9f9a2e60dde53b9be5852d571c6d9cd3a4ca..6981571e62254d6e9e4c4e6fa4e8151dec894c92 100644
--- a/test/mjsunit/regress/regress-smi-scanning.js
+++ b/test/message/no-legacy-const-3.js
@@ -1,7 +1,7 @@
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+//
+// Flags: --no-legacy-const
-x = 2
-3;
-assertEquals(2, x);
+const
« no previous file with comments | « test/message/no-legacy-const-2.out ('k') | test/message/no-legacy-const-3.out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698