fix corner case in inline (#5529)

fixes #5528
This commit is contained in:
Alex Lam S.L
2022-06-29 00:37:58 +01:00
committed by GitHub
parent f1b3e9df1e
commit e1b03d0235
4 changed files with 210 additions and 53 deletions

View File

@@ -778,9 +778,9 @@ function compare_run_code(code, minify_options, result_cache, max_timeout) {
function run(code, timeout) {
if (minify_options.module) code = [
'"use strict";',
"(async function(){",
"(async ()=>{",
code,
"})();"
"})().catch(e=>console.log(e));",
].join("\n");
return run_code(code, toplevel, result_cache, timeout);
}