arg-non-symbol.js |
---
esid: sec-symbol.keyfor
description: Called with a non-symbol argument
info: |
1. If Type(sym) is not Symbol, throw a TypeError exception.
features: [Symbol]
--- |
1084 |
arg-symbol-registry-hit.js |
---
esid: sec-symbol.keyfor
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]
--- |
595 |
arg-symbol-registry-miss.js |
---
esid: sec-symbol.keyfor
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]
--- |
868 |
browser.js |
|
0 |
cross-realm.js |
---
esid: sec-symbol.keyfor
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]
--- |
757 |
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]
--- |
1071 |
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]
--- |
836 |
not-a-constructor.js |
---
esid: sec-ecmascript-standard-built-in-objects
description: >
Symbol.keyFor does not implement [[Construct]], is not new-able
info: |
ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js]
features: [Reflect.construct, Symbol, arrow-function]
--- |
890 |
prop-desc.js |
---
esid: sec-symbol.keyfor
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]
--- |
658 |
shell.js |
|
0 |