Skip to content

Commit 5de45d9

Browse files
TimothyGudomenic
authored andcommitted
Specify what typeof should return for exotic objects
Fixes #512.
1 parent c9246d4 commit 5de45d9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.bs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ urlPrefix: https://tc39.github.io/ecma262/; spec: ECMA-262
103103
text: %Promise_reject%; url: sec-promise.reject
104104
text: %Promise_resolve%; url: sec-promise.resolve
105105
text: %PromiseProto_then%; url: sec-promise.prototype.then
106+
text: typeof; url: sec-typeof-operator
106107
type: const; for: ECMAScript
107108
url: sec-well-known-symbols
108109
text: @@iterator
@@ -6728,6 +6729,10 @@ of objects defined in this section has the value <emu-val>true</emu-val>.
67286729
Unless otherwise specified, the \[[Prototype]] internal slot
67296730
of objects defined in this section is {{%ObjectPrototype%}}.
67306731

6732+
Unless otherwise specified, {{ECMAScript/typeof}} operator, when called on an
6733+
exotic object that is not a [=function object=] defined in this section and
6734+
other specifications, must return the string "<code>object</code>".
6735+
67316736
Some objects described in this section are defined to have a <dfn id="dfn-class-string" export>class string</dfn>,
67326737
which is the string to include in the string returned from Object.prototype.toString.
67336738

0 commit comments

Comments
 (0)