});
}
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",
});
} 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) {
"NaN",
"Infinity",
"arguments",
- "parseInt",
"async",
"await",
];
}
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,
var child_process = require("child_process");
var args = [
- "--max-old-space-size=4096",
+ "--max-old-space-size=2048",
"test/ufuzz",
];
var iterations;