suppress false positives in ufuzz (#4578)

This commit is contained in:
Alex Lam S.L
2021-01-21 18:33:00 +00:00
committed by GitHub
parent e675262d51
commit 63b5b6d2b3
3 changed files with 4 additions and 5 deletions

View File

@@ -317,7 +317,6 @@ var VAR_NAMES = [
"NaN",
"Infinity",
"arguments",
"parseInt",
"async",
"await",
];
@@ -1848,7 +1847,7 @@ function patch_try_catch(orig, toplevel) {
}
var new_code = code.slice(0, index) + insert + code.slice(index) + tail_throw;
var result = sandbox.run_code(new_code, toplevel);
if (typeof result != "object" || typeof result.name != "string" || typeof result.message != "string") {
if (!sandbox.is_error(result)) {
if (!stack.filled && match[1]) stack.push({
code: code,
index: index && index - 1,