mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 15:34:29 +02:00
Add esid
This commit is contained in:
parent
005e570f7c
commit
8d8bdc1f92
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.1.1.3-0
|
es5id: 15.1.1.3-0
|
||||||
|
es6id: 18.1.3
|
||||||
|
esid: sec-undefined
|
||||||
description: >
|
description: >
|
||||||
Global.undefined is a data property with default attribute values
|
Global.undefined is a data property with default attribute values
|
||||||
(false)
|
(false)
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.1.1.3-1
|
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
|
description: undefined is not writable, should not throw in non-strict mode
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.1.1.3-2
|
es5id: 15.1.1.3-2
|
||||||
|
es6id: 18.1.3
|
||||||
|
esid: sec-undefined
|
||||||
description: undefined is not writable, should throw TypeError in strict mode
|
description: undefined is not writable, should throw TypeError in strict mode
|
||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
---*/
|
---*/
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
|
|
||||||
/*---
|
/*---
|
||||||
es5id: 15.1.1.3-3
|
es5id: 15.1.1.3-3
|
||||||
|
es6id: 18.1.3
|
||||||
|
esid: sec-undefined
|
||||||
description: >
|
description: >
|
||||||
undefined is not writable, simple assignment should return the
|
undefined is not writable, simple assignment should return the
|
||||||
rval value (11.13.1-6)
|
rval value (11.13.1-6)
|
||||||
|
@ -4,20 +4,22 @@
|
|||||||
/*---
|
/*---
|
||||||
info: The initial value of undefined is undefined
|
info: The initial value of undefined is undefined
|
||||||
es5id: 15.1.1.3_A1
|
es5id: 15.1.1.3_A1
|
||||||
|
es6id: 18.1.3
|
||||||
|
esid: sec-undefined
|
||||||
description: Use typeof, isNaN, isFinite
|
description: Use typeof, isNaN, isFinite
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
// CHECK#1
|
// CHECK#1
|
||||||
if (typeof(undefined) !== "undefined") {
|
if (typeof(undefined) !== "undefined") {
|
||||||
$ERROR('#1: typeof(undefined) === "undefined". Actual: ' + (typeof(undefined)));
|
$ERROR('#1: typeof(undefined) === "undefined". Actual: ' + (typeof(undefined)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// CHECK#2
|
// CHECK#2
|
||||||
if (undefined !== void 0) {
|
if (undefined !== void 0) {
|
||||||
$ERROR('#2: undefined === void 0. Actual: ' + (undefined));
|
$ERROR('#2: undefined === void 0. Actual: ' + (undefined));
|
||||||
}
|
}
|
||||||
|
|
||||||
// CHECK#3
|
// CHECK#3
|
||||||
if (undefined !== eval("var x")) {
|
if (undefined !== eval("var x")) {
|
||||||
$ERROR('#3: undefined === eval("var x"). Actual: ' + (undefined));
|
$ERROR('#3: undefined === eval("var x"). Actual: ' + (undefined));
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
/*---
|
/*---
|
||||||
info: The undefined is DontDelete
|
info: The undefined is DontDelete
|
||||||
es5id: 15.1.1.3_A3.1
|
es5id: 15.1.1.3_A3.1
|
||||||
|
es6id: 18.1.3
|
||||||
|
esid: sec-undefined
|
||||||
description: Use delete
|
description: Use delete
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
/*---
|
/*---
|
||||||
info: The undefined is DontDelete
|
info: The undefined is DontDelete
|
||||||
es5id: 15.1.1.3_A3.1
|
es5id: 15.1.1.3_A3.1
|
||||||
|
es6id: 18.1.3
|
||||||
|
esid: sec-undefined
|
||||||
description: Use delete
|
description: Use delete
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
/*---
|
/*---
|
||||||
info: The undefined is DontEnum
|
info: The undefined is DontEnum
|
||||||
es5id: 15.1.1.3_A3.2
|
es5id: 15.1.1.3_A3.2
|
||||||
|
es6id: 18.1.3
|
||||||
|
esid: sec-undefined
|
||||||
description: Use for-in statement
|
description: Use for-in statement
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user