tor-browser

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

S12.6.3_A11.1_T1.js (617B)


      1 // Copyright 2009 the Sputnik authors.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 info: |
      6    If (Evaluate Statement).type is "continue" and (Evaluate
      7    Statement).target is in the current label set, iteration of labeled
      8    "var-loop" breaks
      9 es5id: 12.6.3_A11.1_T1
     10 description: Using "continue" in order to continue a loop
     11 ---*/
     12 
     13 var __str;
     14 __str=""
     15 
     16 for(var index=0; index<10; index+=1) {
     17 if (index<5)continue;
     18 __str+=index;
     19 }
     20 
     21 if (__str!=="56789") {
     22 throw new Test262Error('#1: __str === "56789". Actual:  __str ==='+ __str  );
     23 }
     24 
     25 reportCompare(0, 0);