mirror of https://github.com/tc39/test262.git
mark namespace object toStringTag as non-configurable (#811)
This commit is contained in:
parent
b5edd1256c
commit
a73221eb8f
|
@ -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');
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue