This commit is contained in:
Leo Balter 2017-04-06 17:50:59 -04:00
parent 4941d46a28
commit 590d04edd2
No known key found for this signature in database
GPG Key ID: 2C75F319D398E36B
3 changed files with 31 additions and 1 deletions

View File

@ -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() {

View File

@ -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

View File

@ -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