Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/undefined/S15.1.1.3_A1.js

raw
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 es5id: 15.1.1.3_A1
7 es6id: 18.1.3
8 esid: sec-undefined
9 description: Use typeof, isNaN, isFinite
10 ---*/
11
12 // CHECK#1
13 if (typeof(undefined) !== "undefined") {
14 $ERROR('#1: typeof(undefined) === "undefined". Actual: ' + (typeof(undefined)));
15 }
16
17 // CHECK#2
18 if (undefined !== void 0) {
19 $ERROR('#2: undefined === void 0. Actual: ' + (undefined));
20 }
21
22 // CHECK#3
23 if (undefined !== eval("var x")) {
24 $ERROR('#3: undefined === eval("var x"). Actual: ' + (undefined));
25 }