tor-browser

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

S7.9_A5.5_T2.js (562B)


      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_T2
      7 description: >
      8    Try use function f(o) {o.x = 1; return o;}; \n (new Object()).x;
      9    construction
     10 ---*/
     11 
     12 //CHECK#1
     13 var result = function f(o) {o.x = 1; return o;};
     14 (new Object()).x;
     15 if (typeof result !== "function") {
     16  throw new Test262Error('#1: Check Function Expression for automatic semicolon insertion');
     17 }
     18 
     19 reportCompare(0, 0);