mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Added support of top-level await
Fixed https://github.com/javascript-obfuscator/javascript-obfuscator/issues/884
This commit is contained in:
@@ -65,6 +65,7 @@ export class ASTParserFacade {
|
||||
const comments: ESTree.Comment[] = [];
|
||||
const config: acorn.Options = {
|
||||
...inputConfig,
|
||||
allowAwaitOutsideFunction: true,
|
||||
onComment: comments,
|
||||
sourceType
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user