tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nested-let-bound-for-loops-labeled-continue.js (453B)


      1 // Copyright (C) 2014 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 es6id: 13.12
      5 description: >
      6    nested let bound for loops labeled continue
      7 ---*/
      8 var count = 0;
      9 outer: for (let x = 0; x < 10;) {
     10  x++;
     11  for (let y = 0; y < 2;) {
     12    y++;
     13    count++;
     14    if (y == 2) continue outer;
     15  }
     16 }
     17 assert.sameValue(count, 20, "The value of `count` is `20`");
     18 
     19 reportCompare(0, 0);