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

Unified Diff: test/mjsunit/harmony/regress/regress-3683.js

Issue 1007783002: Remove --harmony-scoping flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: CR feedback Created 5 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/harmony/regress/regress-3426.js ('k') | test/mjsunit/harmony/regress/regress-3741.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/regress/regress-3683.js
diff --git a/test/mjsunit/harmony/regress/regress-3683.js b/test/mjsunit/harmony/regress/regress-3683.js
deleted file mode 100644
index a00d82bd1f5277112e268133eb1e17132e2e7700..0000000000000000000000000000000000000000
--- a/test/mjsunit/harmony/regress/regress-3683.js
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright 2014 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: --harmony-scoping
-
-"use strict";
-
-// Simplest case
-var count = 0;
-for (let x = 0; x < 10;) {
- x++;
- count++;
- continue;
-}
-assertEquals(10, count);
-
-// Labeled
-count = 0;
-label: for (let x = 0; x < 10;) {
- while (true) {
- x++;
- count++;
- continue label;
- }
-}
-assertEquals(10, count);
-
-// Simple and labeled
-count = 0;
-label: for (let x = 0; x < 10;) {
- x++;
- count++;
- continue label;
-}
-assertEquals(10, count);
-
-// Shadowing loop variable in same scope as continue
-count = 0;
-for (let x = 0; x < 10;) {
- x++;
- count++;
- {
- let x = "hello";
- continue;
- }
-}
-assertEquals(10, count);
-
-// Nested let-bound for loops, inner continue
-count = 0;
-for (let x = 0; x < 10;) {
- x++;
- for (let y = 0; y < 2;) {
- y++;
- count++;
- continue;
- }
-}
-assertEquals(20, count);
-
-// Nested let-bound for loops, outer continue
-count = 0;
-for (let x = 0; x < 10;) {
- x++;
- for (let y = 0; y < 2;) {
- y++;
- count++;
- }
- continue;
-}
-assertEquals(20, count);
-
-// Nested let-bound for loops, labeled continue
-count = 0;
-outer: for (let x = 0; x < 10;) {
- x++;
- for (let y = 0; y < 2;) {
- y++;
- count++;
- if (y == 2) continue outer;
- }
-}
-assertEquals(20, count);
« no previous file with comments | « test/mjsunit/harmony/regress/regress-3426.js ('k') | test/mjsunit/harmony/regress/regress-3741.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698