support limited ufuzz testing for import (#4707)

This commit is contained in:
Alex Lam S.L
2021-02-28 18:27:41 +00:00
committed by GitHub
parent c549ee89b9
commit 81254f67e4
4 changed files with 45 additions and 11 deletions

View File

@@ -732,7 +732,7 @@ function run_code(code, toplevel, result_cache, timeout) {
if (!value) {
var start = Date.now();
result_cache[key] = value = {
result: sandbox.run_code(sandbox.strip_exports(code), toplevel, timeout),
result: sandbox.run_code(sandbox.patch_module_statements(code), toplevel, timeout),
elapsed: Date.now() - start,
};
}