mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 20:51:42 +03:00
94eac1de89
Implements a top level await for es2017+, and allow it for typescript and ecmascript (ecmascript requires topLevelAwait: true). Closes #626.
13 lines
310 B
Plaintext
13 lines
310 B
Plaintext
error: top level await requires target to es2017 or higher and topLevelAwait:true for ecmascript
|
|
--> $DIR/tests/test262-parser/fail/1aefe47e20eb91fa.module.js:1:1
|
|
|
|
|
1 | await
|
|
| ^^^^^
|
|
|
|
error: Unexpected token None
|
|
--> $DIR/tests/test262-parser/fail/1aefe47e20eb91fa.module.js:1:1
|
|
|
|
|
1 | await
|
|
| ^^^^^
|
|
|