tor-browser

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

S12.6.3_A13.js (731B)


      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    VariableDeclaration in "var VariableDeclarationListNoIn" of for
      7    IterationStatement is allowed
      8 es5id: 12.6.3_A13
      9 description: Declaring variable in "for" ExpressionNoIn
     10 ---*/
     11 
     12 //////////////////////////////////////////////////////////////////////////////
     13 //CHECK#1
     14 try {
     15 index = index;
     16 } catch (e) {
     17 throw new Test262Error('#1: VariableDeclaration in "var VariableDeclarationListNoIn" of for IterationStatement is allowed');
     18 }
     19 //
     20 //////////////////////////////////////////////////////////////////////////////
     21 
     22 
     23 for(var index=0; index<6; index++) {
     24 ;
     25 }
     26 
     27 reportCompare(0, 0);