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

@@ -226,7 +226,7 @@ function run_code_exec(code, toplevel, timeout) {
});
}
try {
return execSync('"' + process.argv[0] + '" --max-old-space-size=4096', {
return execSync('"' + process.argv[0] + '" --max-old-space-size=2048', {
encoding: "utf8",
input: code,
stdio: "pipe",
@@ -234,7 +234,7 @@ function run_code_exec(code, toplevel, timeout) {
});
} catch (ex) {
var msg = ex.message.replace(/\r\n/g, "\n");
if (/ETIMEDOUT/.test(msg)) return new Error("Script execution timed out.");
if (/ETIMEDOUT|FATAL ERROR:/.test(msg)) return new Error("Script execution timed out.");
var end = msg.indexOf("\n\n-----===== UNCAUGHT EXCEPTION =====-----\n\n");
var details;
if (end >= 0) {