tor-browser

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

S12.6.3_A7_T1.js (795B)


      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    Only three expressions and two semicolons in "for" braces are allowed.
      8    Appearing of for (ExpressionNoIn_opt ; Expression_opt ; Expression_opt; Expression_opt; Expression_opt;) statement leads to SyntaxError
      9 es5id: 12.6.3_A7_T1
     10 description: >
     11    Checking if execution of "for(index=0; index<10; index++;
     12    index--)" fails
     13 negative:
     14  phase: parse
     15  type: SyntaxError
     16 ---*/
     17 
     18 $DONOTEVALUATE();
     19 
     20 //////////////////////////////////////////////////////////////////////////////
     21 //CHECK#1
     22 for(index=0; index<10; index++; index--) ;
     23 //
     24 //////////////////////////////////////////////////////////////////////////////