aboutsummaryrefslogtreecommitdiff
path: root/test/sandbox.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-01-21 18:33:00 +0000
committerGitHub <noreply@github.com>2021-01-22 02:33:00 +0800
commit63b5b6d2b34c706692dee18e90877b7e71ee2e01 (patch)
treea7e6b183e007dd8de4f7ff6d5603273f8f908cf2 /test/sandbox.js
parente675262d51103122720aded924f5571e12086fc9 (diff)
downloadtracifyjs-63b5b6d2b34c706692dee18e90877b7e71ee2e01.tar.gz
tracifyjs-63b5b6d2b34c706692dee18e90877b7e71ee2e01.zip
suppress false positives in `ufuzz` (#4578)
Diffstat (limited to 'test/sandbox.js')
-rw-r--r--test/sandbox.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sandbox.js b/test/sandbox.js
index bd4c7a8d..707a71e1 100644
--- a/test/sandbox.js
+++ b/test/sandbox.js
@@ -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) {