Skip to content
Snippets Groups Projects
Unverified Commit 50387544 authored by Shu-yu Guo's avatar Shu-yu Guo Committed by Leo Balter
Browse files

Test for [no LineTerminator here] after 'async' for arrows and methods

parent 7e87c739
No related branches found
No related tags found
No related merge requests found
// 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
negative:
phase: early
type: SyntaxError
---*/
async
(foo,bar) => { }
// 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
negative:
phase: early
type: ReferenceError
---*/
async
foo => { }
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: prod-AsyncMethod
description: async methods cannot have a line terminator between "async" and the property name
negative:
phase: early
type: SyntaxError
---*/
{
async
foo () { }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment