tor-browser

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

S7.9_A5.5_T1.js (486B)


      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 Function Expression for automatic semicolon insertion
      6 es5id: 7.9_A5.5_T1
      7 description: Try use 1 + function_name\n(2 + 3) construction
      8 ---*/
      9 
     10 //CHECK#1
     11 function f(t) {
     12  return t;
     13 }
     14 var x = 1 + f
     15 (2 + 3)
     16 if (x !== 6) {
     17  throw new Test262Error('#1: Check Function Expression for automatic semicolon insertion');
     18 }
     19 
     20 reportCompare(0, 0);