| AsyncFunction-construct.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: sec-async-function-constructor
description: >
%AsyncFunction% creates functions with or without new and handles arguments
similarly to functions.
--- |
1084 |
- |
| AsyncFunction-is-extensible.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
%AsyncFunction% is extensible
--- |
365 |
- |
| AsyncFunction-is-subclass.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: sec-async-function-constructor
description: >
%AsyncFunction% is a subclass of Function
--- |
686 |
- |
| AsyncFunction-length.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: sec-async-function-constructor-length
description: >
%AsyncFunction% has a length of 1 with writable false, enumerable false, configurable true.
includes: [propertyHelper.js]
--- |
610 |
- |
| AsyncFunction-name.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: sec-async-function-constructor-properties
description: >
%AsyncFunction% has a name of "AsyncFunction".
includes: [propertyHelper.js]
--- |
575 |
- |
| AsyncFunction-prototype.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: sec-async-function-constructor-prototype
description: AsyncFunction has a prototype property with writable false, enumerable false, configurable false.
includes: [propertyHelper.js]
--- |
584 |
- |
| AsyncFunction.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: sec-async-function-objects
description: >
%AsyncFunction% exists and is a function
--- |
392 |
- |
| AsyncFunctionPrototype-is-extensible.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: sec-sync-function-prototype-properties
description: >
%AsyncFunctionPrototype% has a [[Extensible]] of true
--- |
444 |
- |
| AsyncFunctionPrototype-prototype.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: sec-sync-function-prototype-properties
description: AsyncFunction.prototype has a [[prototype]] of Function.prototype
--- |
458 |
- |
| AsyncFunctionPrototype-to-string.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: sec-async-function-prototype-properties-toStringTag
description: >
%AsyncFunctionPrototype% has a Symbol.toStringTag property of "AsyncFunction"
includes: [propertyHelper.js]
features: [Symbol.toStringTag]
--- |
714 |
- |
| instance-construct-throws.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: sec-async-function-instances
description: >
Async function instances are not constructors and do not have a
[[Construct]] slot.
info: |
25.5.1.1 AsyncFunction( p1, p2, … , pn, body )
...
3. Return CreateDynamicFunction(C, NewTarget, "async", args).
19.2.1.1.1 Runtime Semantics: CreateDynamicFunction( constructor, newTarget, kind, args )
...
33. Perform FunctionInitialize(F, Normal, parameters, body, scope).
34. If kind is "generator", then
...
35. Else if kind is "normal", perform MakeConstructor(F).
36. NOTE: Async functions are not constructable and do not have a [[Construct]] internal method
or a "prototype" property.
...
--- |
1129 |
- |
| instance-has-name.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: sec-async-function-instances-name
description: Async function declarations have a name property
includes: [propertyHelper.js]
--- |
484 |
- |
| instance-length.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: sec-async-function-instances-length
description: >
Async functions have a length property that is the number of expected
arguments.
includes: [propertyHelper.js]
--- |
636 |
- |
| instance-prototype-property.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: sec-async-function-instances
description: >
Async function instances do not have a prototype property.
--- |
484 |
- |
| is-not-a-global.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: sec-async-function-constructor-properties
description: >
%AsyncFunction% is not exposed as a global
--- |
414 |
- |