suppress false positives in ufuzz (#5497)

This commit is contained in:
Alex Lam S.L
2022-06-07 16:28:06 +01:00
committed by GitHub
parent 44e5e99aae
commit a758b40e3f
2 changed files with 36 additions and 4 deletions

View File

@@ -776,7 +776,12 @@ function compare_run_code(code, minify_options, result_cache, max_timeout) {
};
function run(code, timeout) {
if (minify_options.module) code = "(async function(){\n" + code + "\n})();";
if (minify_options.module) code = [
'"use strict";',
"(async function(){",
code,
"})();"
].join("\n");
return run_code(code, toplevel, result_cache, timeout);
}
}