| 1 |
// Copyright (C) 2017 Mozilla Corporation. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
esid: prod-AsyncArrowFunction |
| 6 |
description: > |
| 7 |
async arrows cannot have a line terminator between "async" and the AsyncArrowBindingIdentifier |
| 8 |
info: | |
| 9 |
14.7 Async Arrow Function Definitions |
| 10 |
|
| 11 |
AsyncArrowFunction: |
| 12 |
async [no LineTerminator here] AsyncArrowBindingIdentifier [no LineTerminator here] => AsyncConciseBody |
| 13 |
[...] |
| 14 |
---*/ |
| 15 |
|
| 16 |
assert.throws(ReferenceError, function() { |
| 17 |
async |
| 18 |
identifier => {} |
| 19 |
}); |