tor-browser

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

S7.9_A5.5_T4.js (488B)


      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_T4
      7 description: Insert some LineTerminators into function body
      8 ---*/
      9 
     10 //CHECK#1
     11 var x =
     12 1 + (function (t){return {a:t
     13 }
     14 })
     15 (2 + 3).
     16 a
     17 
     18 if (x !== 6) {
     19  throw new Test262Error('#1: Check Function Expression for automatic semicolon insertion');
     20 }
     21 
     22 reportCompare(0, 0);