mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
Test for [no LineTerminator here] after 'async' for arrows and methods
This commit is contained in:
parent
7e87c73912
commit
5038754462
@ -0,0 +1,13 @@
|
|||||||
|
// 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) => { }
|
@ -0,0 +1,13 @@
|
|||||||
|
// 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 => { }
|
@ -0,0 +1,15 @@
|
|||||||
|
// 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 () { }
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user