?
u
/
p
1-9
The Async Context Mapping Record type is used to represent an AsyncContext.Variable value mapping in the surrounding
An Async Context Mapping Record's fields are defined by
Field Name | Value | Meaning |
---|---|---|
[[AsyncContextKey]] | an AsyncContext.Variable instance | The AsyncContext.Variable instance as the key in the mapping. |
[[AsyncContextValue]] |
an |
The value of the AsyncContext.Variable instance in the mapping. |
This proposal adds a new field to the
Field Name | Value | Meaning |
---|---|---|
[[LittleEndian]] | a Boolean | The default value computed for the isLittleEndian parameter when it is needed by the algorithms |
[[CanBlock]] | a Boolean | Determines whether the |
[[Signifier]] | an |
Uniquely identifies the |
[[IsLockFree1]] | a Boolean | |
[[IsLockFree2]] | a Boolean | |
[[IsLockFree8]] | a Boolean | |
[[CandidateExecution]] | a |
See the |
[[KeptAlive]] | a |
Initially a new empty |
[[AsyncContextMapping]] |
a |
A map from the AsyncContext.Variable instances to the saved |
The abstract operation CleanupFinalizationRegistry takes argument finalizationRegistry (a
The abstract operation CreateBuiltinFunction takes argument behaviour (an
Each built-in function defined in this specification is created by calling the CreateBuiltinFunction abstract operation.
The
The
A PromiseReaction Record is a
PromiseReaction Records have the fields listed in
Field Name | Value | Meaning |
---|---|---|
[[Capability]] |
a |
The capabilities of the promise for which this record provides a reaction handler. |
[[Type]] |
|
The [[Type]] is used when [[Handler]] is |
[[Handler]] |
a |
The function that should be applied to the incoming value, and whose return value will govern what happens to the derived promise. If [[Handler]] is |
[[PromiseAsyncContextMapping]] |
a |
A map from the AsyncContext.Variable instances to the saved |
The
An implementation of HostPromiseRejectionTracker must conform to the following requirements:
The default implementation of HostPromiseRejectionTracker is to return
An implementation of HostPromiseRejectionTracker that delays notifying developers of unhandled rejections must conform to the following requirements
The abstract operation NewPromiseReactionJob takes arguments reaction (a
The abstract operation NewPromiseResolveThenableJob takes arguments promiseToResolve (a Promise), thenable (an Object), and then (a
The Promise prototype object:
This method performs the following steps when called:
The abstract operation PerformPromiseThen takes arguments promise (a Promise), onFulfilled (an
Generator instances are initially created with the internal slots described in
Internal Slot | Type | Description |
---|---|---|
[[GeneratorState]] |
|
The current execution state of the generator. |
[[GeneratorContext]] |
an |
The |
[[GeneratorAsyncContextMapping]] |
a |
The value of the |
[[GeneratorBrand]] |
a String or |
A brand used to distinguish different kinds of generators. The [[GeneratorBrand]] of generators declared by |
The abstract operation GeneratorStart takes arguments generator (a Generator) and generatorBody (a
The abstract operation GeneratorValidate takes arguments generator (an
The abstract operation GeneratorResume takes arguments generator (an
The abstract operation GeneratorResumeAbrupt takes arguments generator (an
The abstract operation CreateIteratorFromClosure takes arguments closure (an
AsyncGenerator instances are initially created with the internal slots described below:
Internal Slot | Type | Description |
---|---|---|
[[AsyncGeneratorState]] | The current execution state of the async generator. | |
[[AsyncGeneratorContext]] | an |
The |
[[AsyncGeneratorQueue]] | a |
|
[[AsyncGeneratorAsyncContextMapping]] | a |
The value of the |
[[GeneratorBrand]] | a String or |
A brand used to distinguish different kinds of async generators. The [[GeneratorBrand]] of async generators declared by |
The abstract operation AsyncGeneratorStart takes arguments generator (an AsyncGenerator) and generatorBody (a
The abstract operation AsyncGeneratorValidate takes arguments generator (an
The abstract operation AsyncGeneratorResume takes arguments generator (an AsyncGenerator) and completion (a
The abstract operation CreateAsyncIteratorFromClosure takes arguments closure (an
The AsyncContext object:
new
operator.The abstract operation AsyncContextSnapshot takes no arguments and returns a
The abstract operation AsyncContextSwap takes argument snapshotMapping (a
The abstract operation CreateAsyncContextSnapshot takes argument snapshotMapping (a
This abstract operation is meant for
See
See
The initial value of the
This property has the attributes { [[Writable]]:
The AsyncContext.Snapshot
extends
clause of a class definition. Subclass super
call to the AsyncContext.Snapshot AsyncContext.Snapshot
and AsyncContext.Snapshot.prototype
built-in methods.This function performs the following steps when called:
The AsyncContext.Snapshot
The initial value of AsyncContext.Snapshot.prototype
is the
This property has the attributes { [[Writable]]:
This function returns a new function which restores the current value of all AsyncContext.Variable values when being invoked.
The AsyncContext.Snapshot prototype object:
The initial value of AsyncContext.Snapshot.prototype.constructor
is
This method performs the following steps when called:
The initial value of the
This property has the attributes { [[Writable]]:
AsyncContext.Snapshot instances are
Internal Slot | Type | Description |
---|---|---|
[[AsyncSnapshotMapping]] |
a |
Represents the snapshotted |
The AsyncContext.Variable
extends
clause of a class definition. Subclass super
call to the AsyncContext.Variable AsyncContext.Variable.prototype
built-in methods.This function performs the following steps when called:
The AsyncContext.Variable
The initial value of AsyncContext.Variable.prototype
is the
This property has the attributes { [[Writable]]:
The AsyncContext.Variable prototype object:
The initial value of AsyncContext.Variable.prototype.constructor
is
This method performs the following steps when called:
AsyncContext.Variable.prototype.name
is an
This method performs the following steps when called:
The initial value of the
This property has the attributes { [[Writable]]:
AsyncContext.Variable instances are
Internal Slot | Type | Description |
---|---|---|
[[AsyncVariableName]] | a String | The name of the AsyncContext.Variable instance. |
[[AsyncVariableDefaultValue]] |
an |
The default value of the AsyncContext.Variable instance when no entry is found in the mapping. |
A
The FinalizationRegistry
extends
clause of a class definition. Subclass FinalizationRegistry
behaviour must include a super
call to the FinalizationRegistry
FinalizationRegistry.prototype
built-in methods.
This function performs the following steps when called:
© 2024 Chengzhong Wu, Justin Ridgewell
All Software contained in this document ("Software") is protected by copyright and is being made available under the "BSD License", included below. This Software may be subject to third party rights (rights from parties other than Ecma International), including patent rights, and no licenses under such third party rights are granted under this license even if the third party concerned is a member of Ecma International. SEE THE ECMA CODE OF CONDUCT IN PATENT MATTERS AVAILABLE AT https://ecma-international.org/memento/codeofconduct.htm FOR INFORMATION REGARDING THE LICENSING OF PATENT CLAIMS THAT ARE REQUIRED TO IMPLEMENT ECMA INTERNATIONAL STANDARDS.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE ECMA INTERNATIONAL "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ECMA INTERNATIONAL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.