| arg-non-symbol.js |
---
esid: sec-symbol.keyfor
es6id: 19.4.2.5
description: Called with a non-symbol argument
info: |
1. If Type(sym) is not Symbol, throw a TypeError exception.
features: [Symbol]
--- |
1078 |
- |
| arg-symbol-registry-hit.js |
---
esid: sec-symbol.keyfor
es6id: 19.4.2.5
description: Called with Symbol value that exists in the global symbol registry
info: |
1. If Type(sym) is not Symbol, throw a TypeError exception.
2. For each element e of the GlobalSymbolRegistry List (see 19.4.2.1),
a. If SameValue(e.[[Symbol]], sym) is true, return e.[[Key]].
features: [Symbol]
--- |
589 |
- |
| arg-symbol-registry-miss.js |
---
esid: sec-symbol.keyfor
es6id: 19.4.2.5
description: >
Called with Symbol value that does not exist in the global symbol registry
info: |
1. If Type(sym) is not Symbol, throw a TypeError exception.
2. For each element e of the GlobalSymbolRegistry List (see 19.4.2.1),
a. If SameValue(e.[[Symbol]], sym) is true, return e.[[Key]].
3. Assert: GlobalSymbolRegistry does not currently contain an entry for
sym.
4. Return undefined.
features: [Symbol.iterator, Symbol]
--- |
862 |
- |
| cross-realm.js |
---
esid: sec-symbol.keyfor
es6id: 19.4.2.5
description: Global symbol registry is shared by all realms
info: |
The GlobalSymbolRegistry is a List that is globally available. It is shared
by all realms. Prior to the evaluation of any ECMAScript code it is
initialized as a new empty List.
features: [cross-realm, Symbol]
--- |
751 |
- |
| length.js |
---
es6id: 19.4.2.5
description: >
Symbol.keyFor.length is 1.
info: |
Symbol.keyFor ( sym )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description, including optional
parameters. However, rest parameters shown using the form “...name”
are not included in the default argument count.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
features: [Symbol]
--- |
1109 |
- |
| name.js |
---
es6id: 19.4.2.5
description: >
Symbol.keyFor.name is "keyFor".
info: |
Symbol.keyFor ( sym )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
features: [Symbol]
--- |
868 |
- |
| prop-desc.js |
---
esid: sec-symbol.keyfor
es6id: 19.4.2.5
description: Property descriptor
info: |
Every other data property described in clauses 18 through 26 and in Annex
B.2 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
[[Configurable]]: true } unless otherwise specified.
includes: [propertyHelper.js]
features: [Symbol]
--- |
652 |
- |