upgrade AST<->ESTree translation (#5554)

This commit is contained in:
Alex Lam S.L
2022-07-11 07:18:25 +08:00
committed by GitHub
parent 38bd4f65d0
commit 4778cf88e2
4 changed files with 40 additions and 11 deletions

View File

@@ -2095,7 +2095,11 @@ function createVarName(maybe, dontStore) {
}
if (require.main !== module) {
exports.createTopLevelCode = createTopLevelCode;
exports.createTopLevelCode = function() {
var code = createTopLevelCode();
exports.module = async && has_await;
return code;
};
exports.num_iterations = num_iterations;
exports.verbose = verbose;
return;