mirror of https://github.com/tc39/test262.git
changes from line notes
This commit is contained in:
parent
6ccabc093b
commit
71c1a9cb3a
|
@ -21,4 +21,5 @@ Object.defineProperty(obj, "foo", {
|
|||
Object.freeze(obj);
|
||||
|
||||
assert(obj.hasOwnProperty("foo"));
|
||||
verifyNotWritable(obj, "foo");
|
||||
verifyNotConfigurable(obj, "foo");
|
||||
|
|
|
@ -22,4 +22,5 @@ var desc = Object.getOwnPropertyDescriptor(argObj, "0");
|
|||
|
||||
verifyNotWritable(argObj, "0");
|
||||
verifyNotConfigurable(argObj, "0");
|
||||
assert.sameValue(argObj[0], 1);
|
||||
|
||||
|
|
|
@ -20,3 +20,5 @@ Object.freeze(strObj);
|
|||
|
||||
verifyNotWritable(strObj, "0");
|
||||
verifyNotConfigurable(strObj, "0");
|
||||
|
||||
assert.sameValue(strObj[0], "a");
|
||||
|
|
|
@ -18,3 +18,5 @@ Object.freeze(obj);
|
|||
|
||||
verifyNotWritable(obj, "0");
|
||||
verifyNotConfigurable(obj, "0");
|
||||
|
||||
assert.sameValue(obj[0], 0);
|
||||
|
|
|
@ -26,3 +26,5 @@ Object.freeze(child);
|
|||
|
||||
verifyNotWritable(child, "foo");
|
||||
verifyNotConfigurable(child, "foo");
|
||||
|
||||
assert.sameValue(child.foo, 10);
|
||||
|
|
|
@ -7,11 +7,10 @@
|
|||
/*---
|
||||
es5id: 15.2.3.13-2-1
|
||||
description: Object.isExtensible returns true for all built-in objects (Global)
|
||||
flags: [noStrict]
|
||||
includes: [fnGlobalObject.js]
|
||||
---*/
|
||||
|
||||
var global = this;
|
||||
var global = fnGlobalObject();
|
||||
|
||||
// in non-strict mode, 'this' is bound to the global object.
|
||||
assert(Object.isExtensible(this));
|
||||
assert(Object.isExtensible(global));
|
||||
|
||||
|
|
|
@ -7,8 +7,7 @@
|
|||
/*---
|
||||
es5id: 15.2.3.12-3-1
|
||||
description: Object.isFrozen returns false for all built-in objects (Global)
|
||||
flags: [noStrict]
|
||||
includes: [fnGlobalObject.js]
|
||||
---*/
|
||||
|
||||
// in non-strict mode, 'this' is bound to the global object.
|
||||
assert(!Object.isFrozen(this));
|
||||
assert(!Object.isFrozen(fnGlobalObject()));
|
||||
|
|
|
@ -7,8 +7,7 @@
|
|||
/*---
|
||||
es5id: 15.2.3.11-4-1
|
||||
description: Object.isSealed returns false for all built-in objects (Global)
|
||||
flags: [noStrict]
|
||||
includes: [fnGlobalObject.js]
|
||||
---*/
|
||||
|
||||
// in non-strict mode, 'this' is bound to the global object.
|
||||
assert(!Object.isSealed(this));
|
||||
assert(!Object.isSealed(fnGlobalObject()));
|
||||
|
|
Loading…
Reference in New Issue