blob: f953d11c3632b5edc4bd896486e1c4f07eb7cb37 [file] [log] [blame]
keith_miller@apple.combcc77f22016-07-15 06:03:25 +00001// Copyright 2009 the Sputnik authors. All rights reserved.
2// This code is governed by the BSD license found in the LICENSE file.
3
4/*---
5info: The initial value of undefined is undefined
6es5id: 15.1.1.3_A1
7description: Use typeof, isNaN, isFinite
8---*/
9
10// CHECK#1
11if (typeof(undefined) !== "undefined") {
12 $ERROR('#1: typeof(undefined) === "undefined". Actual: ' + (typeof(undefined)));
13}
14
15// CHECK#2
16if (undefined !== void 0) {
17 $ERROR('#2: undefined === void 0. Actual: ' + (undefined));
18}
19
20// CHECK#3
21if (undefined !== eval("var x")) {
22 $ERROR('#3: undefined === eval("var x"). Actual: ' + (undefined));
23}