mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
Update cases for async fns with a line terminator
This commit is contained in:
parent
5038754462
commit
4941d46a28
@ -4,10 +4,9 @@
|
||||
/*---
|
||||
esid: prod-AsyncArrowFunction
|
||||
description: async arrows cannot have a line terminator between "async" and the AsyncArrowBindingIdentifier
|
||||
negative:
|
||||
phase: early
|
||||
type: ReferenceError
|
||||
---*/
|
||||
|
||||
async
|
||||
foo => { }
|
||||
assert.throws(ReferenceError, function() {
|
||||
async
|
||||
identifier => {}
|
||||
});
|
@ -10,4 +10,4 @@ negative:
|
||||
---*/
|
||||
|
||||
async
|
||||
(foo,bar) => { }
|
||||
(foo) => { }
|
||||
|
@ -9,7 +9,7 @@ negative:
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
{
|
||||
!{
|
||||
async
|
||||
foo () { }
|
||||
foo() { }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user