2017-03-09 23:25:35 +01:00
|
|
|
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
esid: prod-AsyncArrowHead
|
|
|
|
description: async arrows cannot have a line terminator between "async" and the formals
|
2017-04-06 23:50:59 +02:00
|
|
|
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
|
2017-03-09 23:25:35 +01:00
|
|
|
negative:
|
2017-12-03 06:06:42 +01:00
|
|
|
phase: parse
|
2017-03-09 23:25:35 +01:00
|
|
|
type: SyntaxError
|
|
|
|
---*/
|
|
|
|
|
2018-10-11 16:59:24 +02:00
|
|
|
$DONOTEVALUATE();
|
2017-04-29 22:31:08 +02:00
|
|
|
|
2017-03-09 23:25:35 +01:00
|
|
|
async
|
2017-04-06 22:05:05 +02:00
|
|
|
(foo) => { }
|