tor-browser

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

S12.6.3_A12.1_T3.js (879B)


      1 // |reftest| error:SyntaxError
      2 // Copyright 2009 the Sputnik authors.  All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 info: |
      7    If (Evaluate Statement).type is "break" and (Evaluate Statement).target
      8    is in the current label set, (normal, (Evaluate Statement), empty) is
      9    returned while evaluating a "var-loop"
     10 es5id: 12.6.3_A12.1_T3
     11 description: Trying to break non-existent label
     12 negative:
     13  phase: parse
     14  type: SyntaxError
     15 ---*/
     16 
     17 $DONOTEVALUATE();
     18 
     19 __str="";
     20 
     21 //////////////////////////////////////////////////////////////////////////////
     22 //CHECK#1
     23 outer:for(var index=0;index<4;index+=1){
     24    nested:for(var index_n=0;index_n<=index;index_n++){
     25        if(index*index_n >= 4)break nonexist;
     26        __str+=""+index+index_n;
     27    }
     28 }
     29 //
     30 //////////////////////////////////////////////////////////////////////////////