changes from line notes

This commit is contained in:
smikes 2015-05-07 10:49:00 -06:00
parent 6ccabc093b
commit 71c1a9cb3a
8 changed files with 15 additions and 10 deletions

View File

@ -21,4 +21,5 @@ Object.defineProperty(obj, "foo", {
Object.freeze(obj);
assert(obj.hasOwnProperty("foo"));
verifyNotWritable(obj, "foo");
verifyNotConfigurable(obj, "foo");

View File

@ -22,4 +22,5 @@ var desc = Object.getOwnPropertyDescriptor(argObj, "0");
verifyNotWritable(argObj, "0");
verifyNotConfigurable(argObj, "0");
assert.sameValue(argObj[0], 1);

View File

@ -20,3 +20,5 @@ Object.freeze(strObj);
verifyNotWritable(strObj, "0");
verifyNotConfigurable(strObj, "0");
assert.sameValue(strObj[0], "a");

View File

@ -18,3 +18,5 @@ Object.freeze(obj);
verifyNotWritable(obj, "0");
verifyNotConfigurable(obj, "0");
assert.sameValue(obj[0], 0);

View File

@ -26,3 +26,5 @@ Object.freeze(child);
verifyNotWritable(child, "foo");
verifyNotConfigurable(child, "foo");
assert.sameValue(child.foo, 10);

View File

@ -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));

View File

@ -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()));

View File

@ -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()));