browser.js |
|
0 |
extensibility.js |
---
esid: sec-properties-of-the-generatorfunction-constructor
description: Object extensibility
info: |
The value of the [[Extensible]] internal slot of the GeneratorFunction
constructor is true.
features: [generators]
--- |
516 |
has-instance.js |
---
es6id: 25.2
description: >
Generator function instances are correctly reported as instances of the
GeneratorFunction intrinsic.
features: [generators]
--- |
1105 |
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]
--- |
1009 |
instance-length.js |
---
esid: sec-generatorfunction
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]
--- |
1326 |
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]
--- |
828 |
instance-prototype.js |
---
esid: sec-generatorfunction
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]
--- |
1176 |
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]
--- |
990 |
instance-yield-expr-in-param.js |
---
esid: sec-generatorfunction
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]
--- |
1076 |
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]
--- |
652 |
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 preceding arguments.
features: [generators]
--- |
960 |
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]
--- |
645 |
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]
--- |
871 |
is-a-constructor.js |
---
esid: sec-ecmascript-standard-built-in-objects
description: >
The GeneratorFunction constructor implements [[Construct]]
info: |
IsConstructor ( argument )
The abstract operation IsConstructor takes argument argument (an ECMAScript language value).
It determines if argument is a function object with a [[Construct]] internal method.
It performs the following steps when called:
If Type(argument) is not Object, return false.
If argument has a [[Construct]] internal method, return true.
Return false.
includes: [isConstructor.js, hidden-constructors.js]
features: [Reflect.construct]
--- |
906 |
length.js |
---
esid: sec-generatorfunction.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: [generators]
--- |
627 |
name.js |
---
esid: sec-properties-of-the-generatorfunction-constructor
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]
--- |
1017 |
proto-from-ctor-realm-prototype.js |
---
esid: sec-createdynamicfunction
description: >
While default [[Prototype]] value derives from realm of the newTarget,
"prototype" object inherits from %Object.prototype% of constructor's realm.
info: |
GeneratorFunction ( p1, p2, … , pn, body )
[...]
3. Return ? CreateDynamicFunction(C, NewTarget, generator, args).
CreateDynamicFunction ( constructor, newTarget, kind, args )
[...]
18. Let proto be ? GetPrototypeFromConstructor(newTarget, fallbackProto).
19. Let realmF be the current Realm Record.
20. Let scope be realmF.[[GlobalEnv]].
21. Let F be ! OrdinaryFunctionCreate(proto, parameters, body, non-lexical-this, scope).
[...]
23. If kind is generator, then
a. Let prototype be OrdinaryObjectCreate(%Generator.prototype%).
b. Perform DefinePropertyOrThrow(F, "prototype", PropertyDescriptor { [[Value]]: prototype,
[[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: false }).
[...]
30. Return F.
features: [generators, cross-realm, Reflect]
--- |
1907 |
proto-from-ctor-realm.js |
---
esid: sec-generatorfunction
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]
--- |
1341 |
prototype |
|
|
shell.js |
---
description: |
Provides uniform access to built-in constructors that are not exposed to the global object.
defines:
- AsyncFunction
- AsyncGeneratorFunction
- GeneratorFunction
--- |
1413 |