blob: 0716b5d4c44ded6c54f0ebc7ed886eb36b7b7a21 [file] [log] [blame]
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: prod-AsyncArrowFunction
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() {
async
identifier => {}
});