diff --git a/spec.html b/spec.html index 6362bcfc6e5..38d8e6b51a2 100644 --- a/spec.html +++ b/spec.html @@ -9861,7 +9861,7 @@
HostMakeJobCallback is a host-defined abstract operation that takes argument _callback_ (a function object).
+The host-defined abstract operation HostMakeJobCallback takes argument _callback_ (a function object).
The implementation of HostMakeJobCallback must conform to the following requirements:
HostCallJobCallback is a host-defined abstract operation that takes arguments _jobCallback_ (a JobCallback Record), _V_ (an ECMAScript language value), and _argumentsList_ (a List of ECMAScript language values).
+The host-defined abstract operation HostCallJobCallback takes arguments _jobCallback_ (a JobCallback Record), _V_ (an ECMAScript language value), and _argumentsList_ (a List of ECMAScript language values).
The implementation of HostCallJobCallback must conform to the following requirements:
HostEnqueuePromiseJob is a host-defined abstract operation that schedules the Job Abstract Closure _job_ to be performed, at some future time. The Abstract Closures used with this algorithm are intended to be related to the handling of Promises, or otherwise, to be scheduled with equal priority to Promise handling operations.
-The _realm_ parameter is either *null* or a Realm Record.
+The host-defined abstract operation HostEnqueuePromiseJob takes arguments _job_ (a Job Abstract Closure) and _realm_ (a Realm Record or *null*). It schedules _job_ to be performed, at some future time. The Abstract Closures used with this algorithm are intended to be related to the handling of Promises, or otherwise, to be scheduled with equal priority to Promise handling operations.
The implementation of HostEnqueuePromiseJob must conform to the requirements in
HostGetImportMetaProperties is a host-defined abstract operation that allows hosts to provide property keys and values for the object returned from `import.meta`.
+The host-defined abstract operation HostGetImportMetaProperties takes argument _moduleRecord_ (a Module Record). It allows hosts to provide property keys and values for the object returned from `import.meta`.
The implementation of HostGetImportMetaProperties must conform to the following requirements:
HostFinalizeImportMeta is a host-defined abstract operation that allows hosts to perform any extraordinary operations to prepare the object returned from `import.meta`.
+The host-defined abstract operation HostFinalizeImportMeta takes arguments _importMeta_ (an object) and _moduleRecord_ (a Module Record). It allows hosts to perform any extraordinary operations to prepare the object returned from `import.meta`.
Most hosts will be able to simply define HostGetImportMetaProperties, and leave HostFinalizeImportMeta with its default behaviour. However, HostFinalizeImportMeta provides an "escape hatch" for hosts which need to directly manipulate the object before it is exposed to ECMAScript code.
@@ -22863,7 +22862,7 @@HostResolveImportedModule is a host-defined abstract operation that provides the concrete Module Record subclass instance that corresponds to the |ModuleSpecifier| String, _specifier_, occurring within the context of the script or module represented by the Script Record or Module Record _referencingScriptOrModule_. _referencingScriptOrModule_ may also be *null*, if the resolution is being performed in the context of an
The host-defined abstract operation HostResolveImportedModule takes arguments _referencingScriptOrModule_ (a Script Record or Module Record or *null*) and _specifier_ (a |ModuleSpecifier| String). It provides the concrete Module Record subclass instance that corresponds to _specifier_, occurring within the context of the script or module represented by _referencingScriptOrModule_. _referencingScriptOrModule_ may be *null*, if the resolution is being performed in the context of an
An example of when _referencingScriptOrModule_ can be *null* is in a web browser host. There, if a user clicks on a control given by
@@ -22890,7 +22889,7 @@HostImportModuleDynamically is a host-defined abstract operation that performs any necessary setup work in order to make available the module corresponding to the |ModuleSpecifier| String, _specifier_, occurring within the context of the script or module represented by the Script Record or Module Record _referencingScriptOrModule_. (_referencingScriptOrModule_ may also be *null*, if there is no active script or module when the
The host-defined abstract operation HostImportModuleDynamically takes arguments _referencingScriptOrModule_ (a Script Record or Module Record or *null*), _specifier_ (a |ModuleSpecifier| String), and _promiseCapability_ (a PromiseCapability Record). It performs any necessary setup work in order to make available the module corresponding to _specifier_, occurring within the context of the script or module represented by _referencingScriptOrModule_. (_referencingScriptOrModule_ may be *null*, if there is no active script or module when the
The implementation of HostImportModuleDynamically must conform to the following requirements:
HostEnsureCanCompileStrings is a host-defined abstract operation that allows host environments to block certain ECMAScript functions which allow developers to compile strings into ECMAScript code.
+The host-defined abstract operation HostEnsureCanCompileStrings takes arguments _callerRealm_ (a Realm Record) and _calleeRealm_ (a Realm Record). It allows host environments to block certain ECMAScript functions which allow developers to compile strings into ECMAScript code.
An implementation of HostEnsureCanCompileStrings may complete normally or abruptly. Any abrupt completions will be propagated to its callers. The default implementation of HostEnsureCanCompileStrings is to unconditionally return an empty normal completion.
HostHasSourceTextAvailable is a host-defined abstract operation that allows host environments to prevent the source text from being provided for a given function.
+The host-defined abstract operation HostHasSourceTextAvailable takes argument _func_ (a function object). It allows host environments to prevent the source text from being provided for _func_.
An implementation of HostHasSourceTextAvailable must complete normally in all cases. This operation must be deterministic with respect to its parameters. Each time it is called with a specific _func_ as its argument, it must return the same completion record. The default implementation of HostHasSourceTextAvailable is to unconditionally return a normal completion with a value of *true*.
HostPromiseRejectionTracker is a host-defined abstract operation that allows host environments to track promise rejections.
+The host-defined abstract operation HostPromiseRejectionTracker takes arguments _promise_ (a promise) and _operation_ (*"reject"* or *"handle"*). It allows host environments to track promise rejections.
An implementation of HostPromiseRejectionTracker must complete normally in all cases. The default implementation of HostPromiseRejectionTracker is to unconditionally return an empty normal completion.