tor-browser

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

S7.9.2_A1_T6.js (472B)


      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: Check examples for automatic semicolon insertion from the standard
      7 es5id: 7.9.2_A1_T6
      8 description: >
      9    if(a>b) \n else c=d is not a valid sentence in the ECMAScript
     10    grammar
     11 negative:
     12  phase: parse
     13  type: SyntaxError
     14 ---*/
     15 
     16 $DONOTEVALUATE();
     17 
     18 //CHECK#1
     19 var a=1,b=2,c=3,d;
     20 if(a>b)
     21 else c=d