tor-browser

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

S15.1.1.3_A1.js (686B)


      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: The initial value of undefined is undefined
      6 esid: sec-undefined
      7 description: Use typeof, isNaN, isFinite
      8 ---*/
      9 
     10 // CHECK#1
     11 if (typeof(undefined) !== "undefined") {
     12  throw new Test262Error('#1: typeof(undefined) === "undefined". Actual: ' + (typeof(undefined)));
     13 }
     14 
     15 // CHECK#2
     16 if (undefined !== void 0) {
     17  throw new Test262Error('#2: undefined === void 0. Actual: ' + (undefined));
     18 }
     19 
     20 // CHECK#3
     21 if (undefined !== eval("var x")) {
     22  throw new Test262Error('#3: undefined === eval("var x"). Actual: ' + (undefined));
     23 }
     24 
     25 reportCompare(0, 0);