| extensibility.js |
---
esid: sec-properties-of-the-generatorfunction-constructor
es6id: 25.2.2
description: Object extensibility
info: |
The value of the [[Extensible]] internal slot of the GeneratorFunction
constructor is true.
features: [generators]
--- |
508 |
- |
| has-instance.js |
---
es6id: 25.2
description: >
Generator function instances are correctly reported as instances of the
GeneratorFunction intrinsic.
features: [generators]
--- |
1083 |
- |
| instance-construct-throws.js |
---
esid: sec-generatorfunction
description: The instance created by GeneratorFunction is not a constructor
info: |
25.2.1.1 GeneratorFunction ( p1, p2, … , pn, body )
...
3. Return ? CreateDynamicFunction(C, NewTarget, "generator", args).
19.2.1.1.1 Runtime Semantics: CreateDynamicFunction( constructor, newTarget, kind, args )
...
34. If kind is "generator", then
a. Let prototype be ObjectCreate(%GeneratorPrototype%).
b. Perform DefinePropertyOrThrow(F, "prototype", PropertyDescriptor{[[Value]]: prototype,
[[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: false}).
...
features: [generators]
--- |
987 |
- |
| instance-length.js |
---
esid: sec-generatorfunction
es6id: 25.2.1.1
description: Definition of instance `length` property
info: |
[...]
3. Return CreateDynamicFunction(C, NewTarget, "generator", args).
19.2.1.1.1 Runtime Semantics: CreateDynamicFunction
[...]
26. Perform FunctionInitialize(F, Normal, parameters, body, scope).
[...]
9.2.4 FunctionInitialize
[...]
3. Perform ! DefinePropertyOrThrow(F, "length",
PropertyDescriptor{[[Value]]: len, [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: true}).
[...]
includes: [propertyHelper.js]
features: [generators]
--- |
1320 |
- |
| instance-name.js |
---
es6id: 25.2.1.1
description: Assignment of function `name` attribute
info: |
[...]
3. Return CreateDynamicFunction(C, NewTarget, "generator", args).
ES6 19.2.1.1.1
RuntimeSemantics: CreateDynamicFunction(constructor, newTarget, kind, args)
[...]
29. Perform SetFunctionName(F, "anonymous").
includes: [propertyHelper.js]
features: [generators]
--- |
806 |
- |
| instance-prototype.js |
---
esid: sec-generatorfunction
es6id: 25.2.1.1
description: Definition of instance `prototype` property
info: |
[...]
3. Return CreateDynamicFunction(C, NewTarget, "generator", args).
19.2.1.1.1 Runtime Semantics: CreateDynamicFunction
[...]
27. If kind is "generator", then
a. Let prototype be ObjectCreate(%GeneratorPrototype%).
b. Perform DefinePropertyOrThrow(F, "prototype",
PropertyDescriptor{[[Value]]: prototype, [[Writable]]: true,
[[Enumerable]]: false, [[Configurable]]: false}).
[...]
includes: [propertyHelper.js]
features: [generators]
--- |
1170 |
- |
| instance-restricted-properties.js |
---
description: >
Functions created using GeneratorFunction intrinsic function do not have
own properties "caller" or "arguments", but inherit them from
%FunctionPrototype%.
features: [generators]
--- |
968 |
- |
| instance-yield-expr-in-param.js |
---
esid: sec-generatorfunction
es6id: 25.2.1.1
description: Definition of instance `length` property
info: |
[...]
3. Return CreateDynamicFunction(C, NewTarget, "generator", args).
19.2.1.1.1 Runtime Semantics: CreateDynamicFunction
[...]
20. If kind is "generator", then
a. If parameters Contains YieldExpression is true, throw a SyntaxError
exception.
features: [generators]
--- |
1070 |
- |
| invoked-as-constructor-no-arguments.js |
---
es6id: 25.2
description: >
When invoked via the constructor invocation pattern without arguments, the
GeneratorFunction intrinsic returns a valid generator with an empty body.
features: [generators]
--- |
630 |
- |
| invoked-as-function-multiple-arguments.js |
---
es6id: 25.2
description: >
When invoked via the function invocation pattern with multiple arguments,
the GeneratorFunction 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: [generators]
--- |
939 |
- |
| invoked-as-function-no-arguments.js |
---
es6id: 25.2
description: >
When invoked via the function invocation pattern without arguments, the
GeneratorFunction intrinsic returns a valid generator with an empty body.
features: [generators]
--- |
623 |
- |
| invoked-as-function-single-argument.js |
---
es6id: 25.2
description: >
When invoked via the function invocation pattern with a single argument,
the GeneratorFunction intrinsic creates a valid generator whose body is the
first argument evaluated as source code.
features: [generators]
--- |
849 |
- |
| length.js |
---
esid: sec-generatorfunction.length
es6id: 25.2.2.1
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: [generators]
--- |
693 |
- |
| name.js |
---
esid: sec-properties-of-the-generatorfunction-constructor
es6id: 25.2.2
description: Function "name" property
info: |
The value of the name property of the GeneratorFunction is
"GeneratorFunction".
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: [generators]
--- |
1075 |
- |
| proto-from-ctor-realm.js |
---
esid: sec-generatorfunction
es6id: 25.2.1.1
description: Default [[Prototype]] value derived from realm of the newTarget
info: |
[...]
3. Return ? CreateDynamicFunction(C, NewTarget, "generator", args).
19.2.1.1.1 Runtime Semantics: CreateDynamicFunction
[...]
3. Else,
[...]
c. Let fallbackProto be "%Generator%".
[...]
22. Let proto be ? GetPrototypeFromConstructor(newTarget, fallbackProto).
[...]
9.1.14 GetPrototypeFromConstructor
[...]
3. Let proto be ? Get(constructor, "prototype").
4. If Type(proto) is not Object, then
a. Let realm be ? GetFunctionRealm(constructor).
b. Let proto be realm's intrinsic object named intrinsicDefaultProto.
[...]
features: [generators, cross-realm, Reflect]
--- |
1335 |
- |
| prototype |
|
|
- |