Support of async/await in 12 EAP?

 

 

 

 

 

 

Expecting new line or semicolon

 

Using EAP 12, isn't it still supported? Is there way to turn off this inspection?

4 comments
Comment actions Permalink

Yes, for sure it's supported. What project JavaScript language version is chosen (Settings (Preferences if you are on Mac)/Languages and frameworks/JavaScript)? Also, does your code compile? Babel reports errors on await unless it's used inside a function marked with async...

0
Comment actions Permalink

Ah my bad, it should be used in wrapped `async` function

0
Comment actions Permalink

The reason is using await keyword outside async-function.

Error message is confusing.

There is how to reproduce:

 

0
Comment actions Permalink

we plan to provide a special inspection with a quick fix - see https://youtrack.jetbrains.com/issue/WEB-24228

0

Please sign in to leave a comment.