tor-browser

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

labeled-continue.js (396B)


      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    labeled continue
      7 ---*/
      8 var count = 0;
      9 label: for (let x = 0; x < 10;) {
     10  while (true) {
     11    x++;
     12    count++;
     13    continue label;
     14  }
     15 }
     16 assert.sameValue(count, 10, "The value of `count` is `10`");
     17 
     18 reportCompare(0, 0);