tor-browser

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

S7.9.2_A1_T7.js (559B)


      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: Check examples for automatic semicolon insertion from the standard
      6 es5id: 7.9.2_A1_T7
      7 description: >
      8    a=b+c \n (d+e).print() is a valid sentence in the ECMAScript
      9    grammar,  and automatic semicolon insertion not run
     10 ---*/
     11 
     12 //CHECK#1
     13 function c (a){
     14 return 2*a;
     15 }
     16 
     17 var a=1,b=2,d=4,e=5;
     18 
     19 a=b+c
     20 (d+e)
     21 
     22 if (a !== 20) throw new Test262Error('#1: Automatic semicolon insertion work wrong');
     23 
     24 reportCompare(0, 0);