Skip to content
Snippets Groups Projects
Unverified Commit 4941d46a authored by Leo Balter's avatar Leo Balter
Browse files

Update cases for async fns with a line terminator

parent 50387544
No related branches found
No related tags found
No related merge requests found
......@@ -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() { }
}
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