Added support of top-level await

Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/884
This commit is contained in:
sanex
2021-02-28 19:23:45 +03:00
parent ab251554b0
commit 72a89a1357
8 changed files with 31 additions and 4 deletions
+1
View File
@@ -65,6 +65,7 @@ export class ASTParserFacade {
const comments: ESTree.Comment[] = [];
const config: acorn.Options = {
...inputConfig,
allowAwaitOutsideFunction: true,
onComment: comments,
sourceType
};