| await-as-binding-identifier-escaped.js |
---
description: await is a reserved keyword within generator function bodies and may not be used as a binding identifier. (Unnamed async function expression)
esid: prod-AsyncFunctionExpression
features: [async-functions]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Async Function Definitions
AsyncFunctionExpression :
async [no LineTerminator here] function ( FormalParameters ) { AsyncFunctionBody }
BindingIdentifier : Identifier
It is a Syntax Error if this production has a [Await] parameter and
StringValue of Identifier is "await".
--- |
908 |
- |
| await-as-binding-identifier.js |
---
description: await is a reserved keyword within generator function bodies and may not be used as a binding identifier. (Unnamed async function expression)
esid: prod-AsyncFunctionExpression
features: [async-functions]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Async Function Definitions
AsyncFunctionExpression :
async [no LineTerminator here] function ( FormalParameters ) { AsyncFunctionBody }
BindingIdentifier : Identifier
It is a Syntax Error if this production has a [Await] parameter and
StringValue of Identifier is "await".
--- |
895 |
- |
| await-as-identifier-reference-escaped.js |
---
description: await is a reserved keyword within generator function bodies and may not be used as an identifier reference. (Unnamed async function expression)
esid: prod-AsyncFunctionExpression
features: [async-functions]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Async Function Definitions
AsyncFunctionExpression :
async [no LineTerminator here] function ( FormalParameters ) { AsyncFunctionBody }
IdentifierReference : Identifier
It is a Syntax Error if this production has a [Await] parameter and
StringValue of Identifier is "await".
--- |
916 |
- |
| await-as-identifier-reference.js |
---
description: await is a reserved keyword within generator function bodies and may not be used as an identifier reference. (Unnamed async function expression)
esid: prod-AsyncFunctionExpression
features: [async-functions]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Async Function Definitions
AsyncFunctionExpression :
async [no LineTerminator here] function ( FormalParameters ) { AsyncFunctionBody }
IdentifierReference : Identifier
It is a Syntax Error if this production has a [Await] parameter and
StringValue of Identifier is "await".
--- |
903 |
- |
| await-as-label-identifier-escaped.js |
---
description: await is a reserved keyword within generator function bodies and may not be used as a label identifier. (Unnamed async function expression)
esid: prod-AsyncFunctionExpression
features: [async-functions]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Async Function Definitions
AsyncFunctionExpression :
async [no LineTerminator here] function ( FormalParameters ) { AsyncFunctionBody }
LabelIdentifier : Identifier
It is a Syntax Error if this production has a [Await] parameter and
StringValue of Identifier is "await".
--- |
900 |
- |
| await-as-label-identifier.js |
---
description: await is a reserved keyword within generator function bodies and may not be used as a label identifier. (Unnamed async function expression)
esid: prod-AsyncFunctionExpression
features: [async-functions]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Async Function Definitions
AsyncFunctionExpression :
async [no LineTerminator here] function ( FormalParameters ) { AsyncFunctionBody }
LabelIdentifier : Identifier
It is a Syntax Error if this production has a [Await] parameter and
StringValue of Identifier is "await".
--- |
887 |
- |
| early-errors-expression-binding-identifier-arguments.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
If the source code matching this production is strict code, it is a Syntax Error if BindingIdentifier is the IdentifierName arguments.
negative:
phase: parse
type: SyntaxError
flags: [onlyStrict]
--- |
518 |
- |
| early-errors-expression-binding-identifier-eval.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
If the source code matching this production is strict code, it is a Syntax Error if BindingIdentifier is the IdentifierName eval.
negative:
phase: parse
type: SyntaxError
flags: [onlyStrict]
--- |
506 |
- |
| early-errors-expression-body-contains-super-call.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: It is a syntax error if AsyncFunctionBody contains SuperCall is true
negative:
phase: parse
type: SyntaxError
--- |
431 |
- |
| early-errors-expression-body-contains-super-property.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: It is a syntax error if AsyncFunctionBody contains SuperProperty is true
negative:
phase: parse
type: SyntaxError
--- |
440 |
- |
| early-errors-expression-eval-in-formal-parameters.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: It is a SyntaxError if FormalParameters contains eval in strict mode
negative:
phase: parse
type: SyntaxError
flags: [onlyStrict]
--- |
445 |
- |
| early-errors-expression-formals-body-duplicate.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: It is a SyntaxError if BoundNames of FormalParameters also occurs in the LexicallyDeclaredNames of AsyncFunctionBody
negative:
phase: parse
type: SyntaxError
--- |
481 |
- |
| early-errors-expression-formals-contains-super-call.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: It is a syntax error if FormalParameters contains SuperCall is true
negative:
phase: parse
type: SyntaxError
--- |
442 |
- |
| early-errors-expression-formals-contains-super-property.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: It is a syntax error if FormalParameters contains SuperCall is true
negative:
phase: parse
type: SyntaxError
--- |
444 |
- |
| early-errors-expression-not-simple-assignment-target.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
Async function expressions are not a simple assignment target.
negative:
phase: parse
type: ReferenceError
--- |
424 |
- |
| early-errors-expression-NSPL-with-USD.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
It is a Syntax Error if ContainsUseStrict of AsyncConciseBody is *true* and IsSimpleParameterList of ArrowParameters is *false*.
negative:
phase: parse
type: SyntaxError
--- |
496 |
- |
| escaped-async.js |
---
esid: sec-grammar-notation
description: >
The `async` contextual keyword must not contain Unicode escape sequences.
info: |
Terminal symbols of the lexical, RegExp, and numeric string grammars are shown
in fixed width font, both in the productions of the grammars and throughout this
specification whenever the text directly refers to such a terminal symbol. These
are to appear in a script exactly as written. All terminal symbol code points
specified in this way are to be understood as the appropriate Unicode code points
from the Basic Latin range, as opposed to any similar-looking code points from
other Unicode ranges.
negative:
phase: parse
type: SyntaxError
features: [async-functions]
--- |
949 |
- |
| expression-returns-promise.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
Async function expressions return promises
--- |
372 |
- |
| named-await-as-binding-identifier-escaped.js |
---
description: await is a reserved keyword within generator function bodies and may not be used as a binding identifier. (Named async function expression)
esid: prod-AsyncFunctionExpression
features: [async-functions]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Async Function Definitions
AsyncFunctionExpression :
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
BindingIdentifier : Identifier
It is a Syntax Error if this production has a [Await] parameter and
StringValue of Identifier is "await".
--- |
932 |
- |
| named-await-as-binding-identifier.js |
---
description: await is a reserved keyword within generator function bodies and may not be used as a binding identifier. (Named async function expression)
esid: prod-AsyncFunctionExpression
features: [async-functions]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Async Function Definitions
AsyncFunctionExpression :
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
BindingIdentifier : Identifier
It is a Syntax Error if this production has a [Await] parameter and
StringValue of Identifier is "await".
--- |
919 |
- |
| named-await-as-identifier-reference-escaped.js |
---
description: await is a reserved keyword within generator function bodies and may not be used as an identifier reference. (Named async function expression)
esid: prod-AsyncFunctionExpression
features: [async-functions]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Async Function Definitions
AsyncFunctionExpression :
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
IdentifierReference : Identifier
It is a Syntax Error if this production has a [Await] parameter and
StringValue of Identifier is "await".
--- |
940 |
- |
| named-await-as-identifier-reference.js |
---
description: await is a reserved keyword within generator function bodies and may not be used as an identifier reference. (Named async function expression)
esid: prod-AsyncFunctionExpression
features: [async-functions]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Async Function Definitions
AsyncFunctionExpression :
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
IdentifierReference : Identifier
It is a Syntax Error if this production has a [Await] parameter and
StringValue of Identifier is "await".
--- |
927 |
- |
| named-await-as-label-identifier-escaped.js |
---
description: await is a reserved keyword within generator function bodies and may not be used as a label identifier. (Named async function expression)
esid: prod-AsyncFunctionExpression
features: [async-functions]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Async Function Definitions
AsyncFunctionExpression :
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
LabelIdentifier : Identifier
It is a Syntax Error if this production has a [Await] parameter and
StringValue of Identifier is "await".
--- |
924 |
- |
| named-await-as-label-identifier.js |
---
description: await is a reserved keyword within generator function bodies and may not be used as a label identifier. (Named async function expression)
esid: prod-AsyncFunctionExpression
features: [async-functions]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Async Function Definitions
AsyncFunctionExpression :
async [no LineTerminator here] function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
LabelIdentifier : Identifier
It is a Syntax Error if this production has a [Await] parameter and
StringValue of Identifier is "await".
--- |
911 |
- |
| named-dflt-params-abrupt.js |
---
description: Abrupt completion returned by evaluation of initializer (async function named expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
14.1.19 Runtime Semantics: IteratorBindingInitialization
FormalsList : FormalsList , FormalParameter
1. Let status be the result of performing IteratorBindingInitialization for
FormalsList using iteratorRecord and environment as the arguments.
2. ReturnIfAbrupt(status).
3. Return the result of performing IteratorBindingInitialization for
FormalParameter using iteratorRecord and environment as the arguments.
--- |
1394 |
- |
| named-dflt-params-arg-val-not-undefined.js |
---
description: Use of initializer when argument value is not `undefined` (async function named expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
14.1.19 Runtime Semantics: IteratorBindingInitialization
FormalsList : FormalsList , FormalParameter
[...]
23. Let iteratorRecord be Record {[[Iterator]]:
CreateListIterator(argumentsList), [[Done]]: false}.
24. If hasDuplicates is true, then
[...]
25. Else,
a. Perform ? IteratorBindingInitialization for formals with
iteratorRecord and env as arguments.
[...]
--- |
2135 |
- |
| named-dflt-params-arg-val-undefined.js |
---
description: Use of initializer when argument value is `undefined` (async function named expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
14.1.19 Runtime Semantics: IteratorBindingInitialization
FormalsList : FormalsList , FormalParameter
[...]
23. Let iteratorRecord be Record {[[Iterator]]:
CreateListIterator(argumentsList), [[Done]]: false}.
24. If hasDuplicates is true, then
[...]
25. Else,
a. Perform ? IteratorBindingInitialization for formals with
iteratorRecord and env as arguments.
[...]
--- |
1404 |
- |
| named-dflt-params-duplicates.js |
---
description: It is a Syntax Error if BoundNames of FormalParameters contains any duplicate elements. (async function named expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
14.1.2 Static Semantics: Early Errors
StrictFormalParameters : FormalParameters
- It is a Syntax Error if BoundNames of FormalParameters contains any
duplicate elements.
FormalParameters : FormalParameterList
- It is a Syntax Error if IsSimpleParameterList of FormalParameterList is
false and BoundNames of FormalParameterList contains any duplicate
elements.
--- |
1120 |
- |
| named-dflt-params-ref-later.js |
---
description: Referencing a parameter that occurs later in the ParameterList (async function named expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
14.1.19 Runtime Semantics: IteratorBindingInitialization
FormalsList : FormalsList , FormalParameter
1. Let status be the result of performing IteratorBindingInitialization for
FormalsList using iteratorRecord and environment as the arguments.
2. ReturnIfAbrupt(status).
3. Return the result of performing IteratorBindingInitialization for
FormalParameter using iteratorRecord and environment as the arguments.
--- |
1377 |
- |
| named-dflt-params-ref-prior.js |
---
description: Referencing a parameter that occurs earlier in the ParameterList (async function named expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
14.1.19 Runtime Semantics: IteratorBindingInitialization
FormalsList : FormalsList , FormalParameter
1. Let status be the result of performing IteratorBindingInitialization for
FormalsList using iteratorRecord and environment as the arguments.
2. ReturnIfAbrupt(status).
3. Return the result of performing IteratorBindingInitialization for
FormalParameter using iteratorRecord and environment as the arguments.
--- |
1437 |
- |
| named-dflt-params-ref-self.js |
---
description: Referencing a parameter from within its own initializer (async function named expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
14.1.19 Runtime Semantics: IteratorBindingInitialization
FormalsList : FormalsList , FormalParameter
1. Let status be the result of performing IteratorBindingInitialization for
FormalsList using iteratorRecord and environment as the arguments.
2. ReturnIfAbrupt(status).
3. Return the result of performing IteratorBindingInitialization for
FormalParameter using iteratorRecord and environment as the arguments.
--- |
1366 |
- |
| named-dflt-params-rest.js |
---
description: RestParameter does not support an initializer (async function named expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
14.1 Function Definitions
Syntax
FunctionRestParameter[Yield] :
BindingRestElement[?Yield]
13.3.3 Destructuring Binding Patterns
Syntax
BindingRestElement[Yield] :
...BindingIdentifier[?Yield]
...BindingPattern[?Yield]
--- |
939 |
- |
| named-dflt-params-trailing-comma.js |
---
description: A trailing comma should not increase the respective length, using default parameters (async function named expression)
esid: sec-async-function-definitions
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
Trailing comma in the parameters list
14.1 Function Definitions
FormalParameters[Yield, Await] : FormalParameterList[?Yield, ?Await] ,
--- |
1094 |
- |
| named-params-trailing-comma-multiple.js |
---
description: A trailing comma should not increase the respective length, using multiple parameters (async function named expression)
esid: sec-async-function-definitions
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
Trailing comma in the parameters list
14.1 Function Definitions
FormalParameters[Yield, Await] : FormalParameterList[?Yield, ?Await] ,
--- |
1087 |
- |
| named-params-trailing-comma-single.js |
---
description: A trailing comma should not increase the respective length, using a single parameter (async function named expression)
esid: sec-async-function-definitions
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
Trailing comma in the parameters list
14.1 Function Definitions
FormalParameters[Yield, Await] : FormalParameterList[?Yield, ?Await] ,
--- |
1051 |
- |
| named-rest-params-trailing-comma-early-error.js |
---
description: It's a syntax error if a FunctionRestParameter is followed by a trailing comma (async function named expression)
esid: sec-async-function-definitions
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function BindingIdentifier ( FormalParameters ) { AsyncFunctionBody }
Trailing comma in the parameters list
14.1 Function Definitions
FormalParameters[Yield, Await] :
[empty]
FunctionRestParameter[?Yield, ?Await]
FormalParameterList[?Yield, ?Await]
FormalParameterList[?Yield, ?Await] ,
FormalParameterList[?Yield, ?Await] , FunctionRestParameter[?Yield, ?Await]
--- |
1037 |
- |
| nameless-dflt-params-abrupt.js |
---
description: Abrupt completion returned by evaluation of initializer (async function nameless expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function ( FormalParameters ) { AsyncFunctionBody }
14.1.19 Runtime Semantics: IteratorBindingInitialization
FormalsList : FormalsList , FormalParameter
1. Let status be the result of performing IteratorBindingInitialization for
FormalsList using iteratorRecord and environment as the arguments.
2. ReturnIfAbrupt(status).
3. Return the result of performing IteratorBindingInitialization for
FormalParameter using iteratorRecord and environment as the arguments.
--- |
1380 |
- |
| nameless-dflt-params-arg-val-not-undefined.js |
---
description: Use of initializer when argument value is not `undefined` (async function nameless expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function ( FormalParameters ) { AsyncFunctionBody }
14.1.19 Runtime Semantics: IteratorBindingInitialization
FormalsList : FormalsList , FormalParameter
[...]
23. Let iteratorRecord be Record {[[Iterator]]:
CreateListIterator(argumentsList), [[Done]]: false}.
24. If hasDuplicates is true, then
[...]
25. Else,
a. Perform ? IteratorBindingInitialization for formals with
iteratorRecord and env as arguments.
[...]
--- |
2119 |
- |
| nameless-dflt-params-arg-val-undefined.js |
---
description: Use of initializer when argument value is `undefined` (async function nameless expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function ( FormalParameters ) { AsyncFunctionBody }
14.1.19 Runtime Semantics: IteratorBindingInitialization
FormalsList : FormalsList , FormalParameter
[...]
23. Let iteratorRecord be Record {[[Iterator]]:
CreateListIterator(argumentsList), [[Done]]: false}.
24. If hasDuplicates is true, then
[...]
25. Else,
a. Perform ? IteratorBindingInitialization for formals with
iteratorRecord and env as arguments.
[...]
--- |
1388 |
- |
| nameless-dflt-params-duplicates.js |
---
description: It is a Syntax Error if BoundNames of FormalParameters contains any duplicate elements. (async function nameless expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function ( FormalParameters ) { AsyncFunctionBody }
14.1.2 Static Semantics: Early Errors
StrictFormalParameters : FormalParameters
- It is a Syntax Error if BoundNames of FormalParameters contains any
duplicate elements.
FormalParameters : FormalParameterList
- It is a Syntax Error if IsSimpleParameterList of FormalParameterList is
false and BoundNames of FormalParameterList contains any duplicate
elements.
--- |
1105 |
- |
| nameless-dflt-params-ref-later.js |
---
description: Referencing a parameter that occurs later in the ParameterList (async function nameless expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function ( FormalParameters ) { AsyncFunctionBody }
14.1.19 Runtime Semantics: IteratorBindingInitialization
FormalsList : FormalsList , FormalParameter
1. Let status be the result of performing IteratorBindingInitialization for
FormalsList using iteratorRecord and environment as the arguments.
2. ReturnIfAbrupt(status).
3. Return the result of performing IteratorBindingInitialization for
FormalParameter using iteratorRecord and environment as the arguments.
--- |
1363 |
- |
| nameless-dflt-params-ref-prior.js |
---
description: Referencing a parameter that occurs earlier in the ParameterList (async function nameless expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function ( FormalParameters ) { AsyncFunctionBody }
14.1.19 Runtime Semantics: IteratorBindingInitialization
FormalsList : FormalsList , FormalParameter
1. Let status be the result of performing IteratorBindingInitialization for
FormalsList using iteratorRecord and environment as the arguments.
2. ReturnIfAbrupt(status).
3. Return the result of performing IteratorBindingInitialization for
FormalParameter using iteratorRecord and environment as the arguments.
--- |
1421 |
- |
| nameless-dflt-params-ref-self.js |
---
description: Referencing a parameter from within its own initializer (async function nameless expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function ( FormalParameters ) { AsyncFunctionBody }
14.1.19 Runtime Semantics: IteratorBindingInitialization
FormalsList : FormalsList , FormalParameter
1. Let status be the result of performing IteratorBindingInitialization for
FormalsList using iteratorRecord and environment as the arguments.
2. ReturnIfAbrupt(status).
3. Return the result of performing IteratorBindingInitialization for
FormalParameter using iteratorRecord and environment as the arguments.
--- |
1352 |
- |
| nameless-dflt-params-rest.js |
---
description: RestParameter does not support an initializer (async function nameless expression)
esid: sec-async-function-definitions
features: [default-parameters]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function ( FormalParameters ) { AsyncFunctionBody }
14.1 Function Definitions
Syntax
FunctionRestParameter[Yield] :
BindingRestElement[?Yield]
13.3.3 Destructuring Binding Patterns
Syntax
BindingRestElement[Yield] :
...BindingIdentifier[?Yield]
...BindingPattern[?Yield]
--- |
924 |
- |
| nameless-dflt-params-trailing-comma.js |
---
description: A trailing comma should not increase the respective length, using default parameters (async function nameless expression)
esid: sec-async-function-definitions
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function ( FormalParameters ) { AsyncFunctionBody }
Trailing comma in the parameters list
14.1 Function Definitions
FormalParameters[Yield, Await] : FormalParameterList[?Yield, ?Await] ,
--- |
1078 |
- |
| nameless-params-trailing-comma-multiple.js |
---
description: A trailing comma should not increase the respective length, using multiple parameters (async function nameless expression)
esid: sec-async-function-definitions
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function ( FormalParameters ) { AsyncFunctionBody }
Trailing comma in the parameters list
14.1 Function Definitions
FormalParameters[Yield, Await] : FormalParameterList[?Yield, ?Await] ,
--- |
1071 |
- |
| nameless-params-trailing-comma-single.js |
---
description: A trailing comma should not increase the respective length, using a single parameter (async function nameless expression)
esid: sec-async-function-definitions
flags: [generated, async]
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function ( FormalParameters ) { AsyncFunctionBody }
Trailing comma in the parameters list
14.1 Function Definitions
FormalParameters[Yield, Await] : FormalParameterList[?Yield, ?Await] ,
--- |
1035 |
- |
| nameless-rest-params-trailing-comma-early-error.js |
---
description: It's a syntax error if a FunctionRestParameter is followed by a trailing comma (async function nameless expression)
esid: sec-async-function-definitions
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
14.6 Async Function Definitions
AsyncFunctionExpression :
async function ( FormalParameters ) { AsyncFunctionBody }
Trailing comma in the parameters list
14.1 Function Definitions
FormalParameters[Yield, Await] :
[empty]
FunctionRestParameter[?Yield, ?Await]
FormalParameterList[?Yield, ?Await]
FormalParameterList[?Yield, ?Await] ,
FormalParameterList[?Yield, ?Await] , FunctionRestParameter[?Yield, ?Await]
--- |
1022 |
- |
| syntax-expression-is-PrimaryExpression.js |
---
author: Brian Terlson <brian.terlson@microsoft.com>
esid: pending
description: >
Async function expressions are PrimaryExpressions
--- |
310 |
- |
| try-reject-finally-reject.js |
---
author: Caitlin Potter <caitp@igalia.com>
esid: pending
description: >
Implementations must defer rejecting an async function's Promise until after
all finally blocks have been evaluated.
flags: [async]
--- |
710 |
- |
| try-reject-finally-return.js |
---
author: Caitlin Potter <caitp@igalia.com>
esid: pending
description: >
Implementations must defer rejecting an async function's Promise until after
all finally blocks have been evaluated.
flags: [async]
--- |
631 |
- |
| try-reject-finally-throw.js |
---
author: Caitlin Potter <caitp@igalia.com>
esid: pending
description: >
Implementations must defer rejecting an async function's Promise until after
all finally blocks have been evaluated.
flags: [async]
--- |
647 |
- |
| try-return-finally-reject.js |
---
author: Caitlin Potter <caitp@igalia.com>
esid: pending
description: >
Implementations must defer resolving an async function's Promise until after
all finally blocks have been evaluated.
flags: [async]
--- |
649 |
- |
| try-return-finally-return.js |
---
author: Caitlin Potter <caitp@igalia.com>
esid: pending
description: >
Implementations must defer resolving an async function's Promise until after
all finally blocks have been evaluated.
flags: [async]
--- |
639 |
- |
| try-return-finally-throw.js |
---
author: Caitlin Potter <caitp@igalia.com>
esid: pending
description: >
Implementations must defer resolving an async function's Promise until after
all finally blocks have been evaluated.
flags: [async]
--- |
586 |
- |
| try-throw-finally-reject.js |
---
author: Caitlin Potter <caitp@igalia.com>
esid: pending
description: >
Implementations must defer rejecting an async function's Promise until after
all finally blocks have been evaluated.
flags: [async]
--- |
647 |
- |
| try-throw-finally-return.js |
---
author: Caitlin Potter <caitp@igalia.com>
esid: pending
description: >
Implementations must defer rejecting an async function's Promise until after
all finally blocks have been evaluated.
flags: [async]
--- |
637 |
- |
| try-throw-finally-throw.js |
---
author: Caitlin Potter <caitp@igalia.com>
esid: pending
description: >
Implementations must defer rejecting an async function's Promise until after
all finally blocks have been evaluated.
flags: [async]
--- |
584 |
- |