This commit is contained in:
Lyza Danger Gardner 2017-06-29 10:53:30 -04:00 committed by Rick Waldron
parent 005e570f7c
commit 8d8bdc1f92
8 changed files with 19 additions and 3 deletions

View File

@ -3,6 +3,8 @@
/*---
es5id: 15.1.1.3-0
es6id: 18.1.3
esid: sec-undefined
description: >
Global.undefined is a data property with default attribute values
(false)

View File

@ -3,6 +3,8 @@
/*---
es5id: 15.1.1.3-1
es6id: 18.1.3
esid: sec-undefined
description: undefined is not writable, should not throw in non-strict mode
flags: [noStrict]
---*/

View File

@ -3,6 +3,8 @@
/*---
es5id: 15.1.1.3-2
es6id: 18.1.3
esid: sec-undefined
description: undefined is not writable, should throw TypeError in strict mode
flags: [onlyStrict]
---*/

View File

@ -3,6 +3,8 @@
/*---
es5id: 15.1.1.3-3
es6id: 18.1.3
esid: sec-undefined
description: >
undefined is not writable, simple assignment should return the
rval value (11.13.1-6)

View File

@ -4,20 +4,22 @@
/*---
info: The initial value of undefined is undefined
es5id: 15.1.1.3_A1
es6id: 18.1.3
esid: sec-undefined
description: Use typeof, isNaN, isFinite
---*/
// CHECK#1
if (typeof(undefined) !== "undefined") {
$ERROR('#1: typeof(undefined) === "undefined". Actual: ' + (typeof(undefined)));
$ERROR('#1: typeof(undefined) === "undefined". Actual: ' + (typeof(undefined)));
}
// CHECK#2
if (undefined !== void 0) {
$ERROR('#2: undefined === void 0. Actual: ' + (undefined));
$ERROR('#2: undefined === void 0. Actual: ' + (undefined));
}
// CHECK#3
if (undefined !== eval("var x")) {
$ERROR('#3: undefined === eval("var x"). Actual: ' + (undefined));
$ERROR('#3: undefined === eval("var x"). Actual: ' + (undefined));
}

View File

@ -4,6 +4,8 @@
/*---
info: The undefined is DontDelete
es5id: 15.1.1.3_A3.1
es6id: 18.1.3
esid: sec-undefined
description: Use delete
includes: [propertyHelper.js]
---*/

View File

@ -4,6 +4,8 @@
/*---
info: The undefined is DontDelete
es5id: 15.1.1.3_A3.1
es6id: 18.1.3
esid: sec-undefined
description: Use delete
flags: [noStrict]
---*/

View File

@ -4,6 +4,8 @@
/*---
info: The undefined is DontEnum
es5id: 15.1.1.3_A3.2
es6id: 18.1.3
esid: sec-undefined
description: Use for-in statement
---*/