mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Fixed parsing error when await is used as an identifier in non-async context (#1376)
This commit is contained in:
@@ -58,7 +58,11 @@ export class ASTParserFacade {
|
||||
const comments: ESTree.Comment[] = [];
|
||||
const config: acorn.Options = {
|
||||
...inputConfig,
|
||||
allowAwaitOutsideFunction: true,
|
||||
allowAwaitOutsideFunction: false,
|
||||
allowReserved: true,
|
||||
allowImportExportEverywhere: true,
|
||||
allowReturnOutsideFunction: true,
|
||||
allowSuperOutsideMethod: true,
|
||||
onComment: comments,
|
||||
sourceType
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user