Skip to content
Snippets Groups Projects
Unverified Commit 590d04ed authored by Leo Balter's avatar Leo Balter
Browse files

Add info

parent 4941d46a
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,14 @@
/*---
esid: prod-AsyncArrowFunction
description: async arrows cannot have a line terminator between "async" and the AsyncArrowBindingIdentifier
description: >
async arrows cannot have a line terminator between "async" and the AsyncArrowBindingIdentifier
info: |
14.7 Async Arrow Function Definitions
AsyncArrowFunction:
async [no LineTerminator here] AsyncArrowBindingIdentifier [no LineTerminator here] => AsyncConciseBody
[...]
---*/
assert.throws(ReferenceError, function() {
......
......@@ -4,6 +4,24 @@
/*---
esid: prod-AsyncArrowHead
description: async arrows cannot have a line terminator between "async" and the formals
info: |
14.7 Async Arrow Function Definitions
AsyncArrowFunction:
[...]
CoverCallExpressionAndAsyncArrowHead [no LineTerminator here] => AsyncConciseBody
Supplemental Syntax
When processing an instance of the production
AsyncArrowFunction:
CoverCallExpressionAndAsyncArrowHead [no LineTerminator here] => AsyncConciseBody
the interpretation of CoverCallExpressionAndAsyncArrowHead is refined using the following grammar:
AsyncArrowHead:
async [no LineTerminator here] ArrowFormalParameters
negative:
phase: early
type: SyntaxError
......
......@@ -4,6 +4,11 @@
/*---
esid: prod-AsyncMethod
description: async methods cannot have a line terminator between "async" and the property name
info: |
14.6 Async Function Definitions
AsyncMethod:
async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
negative:
phase: early
type: SyntaxError
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment