From e4aa02dc8ac9cd14bd3d6a4d2a2b1e4fc680f74e Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Mon, 15 Nov 2021 19:08:31 -0700 Subject: [PATCH] more return types --- spec.html | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/spec.html b/spec.html index 891d39f49b..6d563607b7 100644 --- a/spec.html +++ b/spec.html @@ -11403,7 +11403,7 @@

NewDeclarativeEnvironment ( _E_: an Environment Record, - ) + ): a declarative Environment Record

@@ -11420,7 +11420,7 @@

_O_: an Object, _W_: a Boolean, _E_: an Environment Record or *null*, - ) + ): an object Environment Record

@@ -11438,7 +11438,7 @@

NewFunctionEnvironment ( _F_: an ECMAScript function, _newTarget_: an Object or *undefined*, - ) + ): a function Environment Record

@@ -11458,7 +11458,7 @@

NewGlobalEnvironment ( _G_: unknown, _thisValue_: unknown, - ) + ): a global Environment Record

@@ -11479,7 +11479,7 @@

NewModuleEnvironment ( _E_: an Environment Record, - ) + ): a module Environment Record

@@ -11544,7 +11544,7 @@

PrivateEnvironment Record Operations

NewPrivateEnvironment ( _outerPrivEnv_: a PrivateEnvironment Record or *null*, - ) + ): a PrivateEnvironment Record

@@ -11559,7 +11559,7 @@

ResolvePrivateIdentifier ( _privEnv_: a PrivateEnvironment Record, _identifier_: a String, - ) + ): a Private Name

@@ -11610,7 +11610,7 @@

Realms

[[GlobalObject]] - Object + Object or *undefined* The global object for this realm @@ -11654,7 +11654,7 @@

Realms

-

CreateRealm ( )

+

CreateRealm ( ): a Realm Record

@@ -11671,7 +11671,7 @@

CreateRealm ( )

CreateIntrinsics ( _realmRec_: unknown, - ) + ): a Record

@@ -11690,7 +11690,7 @@

_realmRec_: unknown, _globalObj_: an Object or *undefined*, _thisValue_: unknown, - ) + ): ~unused~

@@ -11703,7 +11703,7 @@

1. Set _realmRec_.[[GlobalObject]] to _globalObj_. 1. Let _newGlobalEnv_ be NewGlobalEnvironment(_globalObj_, _thisValue_). 1. Set _realmRec_.[[GlobalEnv]] to _newGlobalEnv_. - 1. Return _realmRec_. + 1. Return ~unused~. @@ -11711,7 +11711,7 @@

SetDefaultGlobalBindings ( _realmRec_: unknown, - ) + ): a Completion Record normally containing an ECMAScript language value

@@ -11840,7 +11840,7 @@

Execution Contexts

An execution context is purely a specification mechanism and need not correspond to any particular artefact of an ECMAScript implementation. It is impossible for ECMAScript code to directly access or observe an execution context.

-

GetActiveScriptOrModule ( )

+

GetActiveScriptOrModule ( ): a Script Record, a Module Record, or *null*

description
It is used to determine the running script or module, based on the running execution context.
@@ -11858,7 +11858,7 @@

ResolveBinding ( _name_: a String, optional _env_: an Environment Record or *undefined*, - ) + ): a Completion Record normally containing a Reference Record

description
@@ -11877,7 +11877,7 @@

-

GetThisEnvironment ( )

+

GetThisEnvironment ( ): an Environment Record

description
It finds the Environment Record that currently supplies the binding of the keyword `this`.
@@ -11897,7 +11897,7 @@

GetThisEnvironment ( )

-

ResolveThisBinding ( )

+

ResolveThisBinding ( ): a Completion Record normally containing an ECMAScript language value

description
It determines the binding of the keyword `this` using the LexicalEnvironment of the running execution context.
@@ -11909,7 +11909,7 @@

ResolveThisBinding ( )

-

GetNewTarget ( )

+

GetNewTarget ( ): an Object or *undefined*

description
It determines the NewTarget value using the LexicalEnvironment of the running execution context.
@@ -11922,7 +11922,7 @@

GetNewTarget ( )

-

GetGlobalObject ( )

+

GetGlobalObject ( ): an Object or *undefined*

description
It returns the global object used by the currently running execution context.
@@ -12025,13 +12025,13 @@

JobCallback Records

HostMakeJobCallback ( _callback_: a function object, - ) + ): a JobCallback Record

An implementation of HostMakeJobCallback must conform to the following requirements:

    -
  • It must complete normally with a JobCallback Record whose [[Callback]] field is _callback_.
  • +
  • It must return a JobCallback Record whose [[Callback]] field is _callback_.

The default implementation of HostMakeJobCallback performs the following steps when called:

@@ -12049,7 +12049,7 @@

_jobCallback_: a JobCallback Record, _V_: an ECMAScript language value, _argumentsList_: a List of ECMAScript language values, - ) + ): a Completion Record