mirror of https://github.com/tc39/test262.git
Add info
This commit is contained in:
parent
4941d46a28
commit
590d04edd2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue