diff --git a/index.html b/index.html new file mode 100644 index 0000000..1dfd6fb --- /dev/null +++ b/index.html @@ -0,0 +1,3370 @@ + +
+ +?
u
/
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 |
+
This proposal adds a new field to the JobCallback Record as the following table:
++ Field Name + | ++ Value + | ++ Meaning + | +
---|---|---|
+ [[Callback]] + | +
+ a |
+
+ The function to invoke when the |
+
+ [[AsyncContextSnapshot]] + | +
+ a |
+
+ A map from the AsyncContext.Variable instances to the saved |
+
+ [[HostDefined]] + | +
+ anything (default value is |
+
+ Field reserved for use by |
+
The
An implementation of HostMakeJobCallback must conform to the following requirements:
+The default implementation of HostMakeJobCallback performs the following steps when called:
+ECMAScript
HostMakeJobCallback snapshots the current AsyncContext global state.
The
An implementation of HostCallJobCallback must conform to the following requirements:
+The default implementation of HostCallJobCallback performs the following steps when called:
+ECMAScript
HostCallJobCallback restores the snapshot saved in
The
The
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
+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
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]]:
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. + | +
© 2023 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.
+ +