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 @@ ...@@ -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: ...@@ -10,4 +10,4 @@ negative:
---*/ ---*/
async async
(foo,bar) => { } (foo) => { }
...@@ -9,7 +9,7 @@ negative: ...@@ -9,7 +9,7 @@ negative:
type: SyntaxError type: SyntaxError
---*/ ---*/
{ !{
async 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