mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 22:45:10 +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
|
esid: prod-AsyncArrowFunction
|
||||||
description: async arrows cannot have a line terminator between "async" and the AsyncArrowBindingIdentifier
|
description: async arrows cannot have a line terminator between "async" and the AsyncArrowBindingIdentifier
|
||||||
negative:
|
|
||||||
phase: early
|
|
||||||
type: ReferenceError
|
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
async
|
assert.throws(ReferenceError, function() {
|
||||||
foo => { }
|
async
|
||||||
|
identifier => {}
|
||||||
|
});
|
@ -10,4 +10,4 @@ negative:
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
async
|
async
|
||||||
(foo,bar) => { }
|
(foo) => { }
|
||||||
|
@ -9,7 +9,7 @@ negative:
|
|||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
{
|
!{
|
||||||
async
|
async
|
||||||
foo () { }
|
foo() { }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user