mark namespace object toStringTag as non-configurable (#811)

This commit is contained in:
Kevin Gibbons 2016-12-28 15:16:24 -07:00 committed by Tom Care
parent b5edd1256c
commit a73221eb8f
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ info: >
"Module".
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: true }.
false, [[Configurable]]: false }.
flags: [module]
features: [Symbol.toStringTag]
---*/
@ -26,4 +26,4 @@ var desc = Object.getOwnPropertyDescriptor(ns, Symbol.toStringTag);
assert.sameValue(desc.enumerable, false, 'reports as non-enumerable');
assert.sameValue(desc.writable, false, 'reports as non-writable');
assert.sameValue(desc.configurable, true, 'reports as configurable');
assert.sameValue(desc.configurable, false, 'reports as non-configurable');

View File

@ -19,7 +19,7 @@ desc = Object.getOwnPropertyDescriptor(ns, Symbol.toStringTag);
assert.sameValue(desc.value, ns[Symbol.toStringTag]);
assert.sameValue(desc.enumerable, false, 'Symbol.toStringTag enumerable');
assert.sameValue(desc.writable, false, 'Symbol.toStringTag writable');
assert.sameValue(desc.configurable, true, 'Symbol.toStringTag configurable');
assert.sameValue(desc.configurable, false, 'Symbol.toStringTag configurable');
assert.sameValue(Object.prototype.hasOwnProperty.call(ns, notFound), false);
desc = Object.getOwnPropertyDescriptor(ns, notFound);