tor-browser

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

cptn-nrml-empty-var.js (478B)


      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: |
      6    If Result(3).type is normal and its completion value is empty,
      7    then return the value undefined
      8 es5id: 15.1.2.1_A3.2_T2
      9 description: Var statement
     10 ---*/
     11 
     12 //CHECK#1
     13 if (eval("var x = 1") !== undefined) {
     14  throw new Test262Error('#1: eval("var x = 1") === undefined. Actual: ' + (eval("var x = 1")));
     15 }
     16 
     17 reportCompare(0, 0);