| extensibility.js |
---
esid: sec-properties-of-asyncgeneratorfunction
description: Object extensibility
info: |
The value of the [[Extensible]] internal slot of the AsyncGeneratorFunction
constructor is true.
features: [async-iteration]
--- |
501 |
- |
| has-instance.js |
---
esid: sec-properties-of-asyncgeneratorfunction
description: >
AsyncGenerator function instances are correctly reported as instances of the
AsyncGeneratorFunction intrinsic.
features: [async-iteration]
--- |
1243 |
- |
| instance-await-expr-in-param.js |
---
esid: sec-asyncgeneratorfunction
description: Definition of instance `length` property
info: |
AsyncGeneratorFunction ( p1, p2, … , pn, body )
...
3. Return CreateDynamicFunction(C, NewTarget, "async generator", args).
Runtime Semantics: CreateDynamicFunction
...
29. If kind is "async" or "async generator", then
a. If parameters Contains AwaitExpression is true, throw a SyntaxError
exception.
features: [async-iteration]
flags: [async]
--- |
1347 |
- |
| instance-construct-throws.js |
---
esid: sec-asyncgeneratorfunction
description: The instance created by AsyncGeneratorFunction is not a constructor
info: |
AsyncGeneratorFunction ( p1, p2, … , pn, body )
...
3. Return ? CreateDynamicFunction(C, NewTarget, "async generator", args).
Runtime Semantics: CreateDynamicFunction( constructor, newTarget, kind, args )
...
32. Let F be FunctionAllocate(proto, strict, kind).
...
FunctionAllocate ( functionPrototype, strict, functionKind )
// [[Construct]] and [[ConstructKind]] are not set for functionKind="async generators"
features: [async-iteration]
--- |
936 |
- |
| instance-length.js |
---
esid: sec-asyncgeneratorfunction
description: Definition of instance `length` property
info: |
AsyncGeneratorFunction ( p1, p2, … , pn, body )
...
3. Return CreateDynamicFunction(C, NewTarget, "async generator", args).
Runtime Semantics: CreateDynamicFunction
...
// the parameter "args" is sliced into "parameters" and "body"
26. Perform FunctionInitialize(F, Normal, parameters, body, scope).
...
FunctionInitialize
...
2. Let len be the ExpectedArgumentCount of ParameterList.
3. Perform ! DefinePropertyOrThrow(F, "length",
PropertyDescriptor{[[Value]]: len, [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: true}).
...
includes: [propertyHelper.js]
features: [async-iteration]
--- |
1524 |
- |
| instance-name.js |
---
esid: sec-asyncgeneratorfunction
description: Assignment of function `name` attribute
info: |
AsyncGeneratorFunction ( p1, p2, … , pn, body )
...
3. Return CreateDynamicFunction(C, NewTarget, "async generator", args).
RuntimeSemantics: CreateDynamicFunction(constructor, newTarget, kind, args)
...
29. Perform SetFunctionName(F, "anonymous").
includes: [propertyHelper.js]
features: [async-iteration]
--- |
823 |
- |
| instance-prototype.js |
---
esid: sec-asyncgeneratorfunction
description: Definition of instance `prototype` property
info: |
AsyncGeneratorFunction ( p1, p2, … , pn, body )
...
3. Return CreateDynamicFunction(C, NewTarget, "async generator", args).
Runtime Semantics: CreateDynamicFunction
...
37. Else if kind is "async generator", then
a. Let prototype be ObjectCreate(%AsyncGeneratorPrototype%).
b. Perform DefinePropertyOrThrow(F, "prototype",
PropertyDescriptor{[[Value]]: prototype, [[Writable]]: true,
[[Enumerable]]: false, [[Configurable]]: false}).
...
includes: [propertyHelper.js]
features: [async-iteration]
--- |
1207 |
- |
| instance-yield-expr-in-param.js |
---
esid: sec-asyncgeneratorfunction
description: Definition of instance `length` property
info: |
AsyncGeneratorFunction ( p1, p2, … , pn, body )
...
3. Return CreateDynamicFunction(C, NewTarget, "async generator", args).
Runtime Semantics: CreateDynamicFunction
...
28. If kind is "generator" or "async generator", then
a. If parameters Contains YieldExpression is true, throw a SyntaxError
exception.
features: [async-iteration]
flags: [async]
--- |
1338 |
- |
| invoked-as-constructor-no-arguments.js |
---
esid: sec-asyncgeneratorfunction
description: >
When invoked via the constructor invocation pattern without arguments, the
GeneratorFunction intrinsic returns a valid async generator with an empty body.
features: [async-iteration]
--- |
707 |
- |
| invoked-as-function-multiple-arguments.js |
---
esid: sec-asyncgeneratorfunction
description: >
When invoked via the function invocation pattern with multiple arguments,
the AsyncGeneratorFunction intrinsic creates a valid generator whose body is the
last argument evaluated as source code and whose formal parameters are
defined by the preceeding arguments.
features: [async-iteration]
--- |
1050 |
- |
| invoked-as-function-no-arguments.js |
---
esid: sec-asyncgeneratorfunction
description: >
When invoked via the function invocation pattern without arguments, the
AsyncGeneratorFunction intrinsic returns a valid generator with an empty body.
features: [async-iteration]
--- |
698 |
- |
| invoked-as-function-single-argument.js |
---
esid: sec-asyncgeneratorfunction
description: >
When invoked via the function invocation pattern with a single argument,
the AsyncGeneratorFunction intrinsic creates a valid async generator whose body is the
first argument evaluated as source code.
features: [async-iteration]
flags: [async]
--- |
994 |
- |
| length.js |
---
esid: sec-asyncgeneratorfunction-length
description: >
This is a data property with a value of 1. This property has the attributes
{ [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
features: [async-iteration]
--- |
624 |
- |
| name.js |
---
esid: sec-properties-of-asyncgeneratorfunction
description: Function "name" property
info: |
The value of the name property of the AsyncGeneratorFunction
is "AsyncGeneratorFunction".
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value is a
String.
Unless otherwise specified, the name property of a built-in Function object,
if it exists, has the attributes { [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: true }.
includes: [propertyHelper.js]
features: [async-iteration]
--- |
1013 |
- |
| prototype |
|
|
- |