Index: test/runners/chromium_remote_process.js |
=================================================================== |
--- a/test/runners/chromium_remote_process.js |
+++ b/test/runners/chromium_remote_process.js |
@@ -54,17 +54,18 @@ |
catch (error) |
{ |
console.error(error); |
} |
} |
function startChromium(chromiumPath) |
{ |
- fs.chmodSync(chromiumPath, fs.constants.S_IRWXU); |
+ // fs.constants.S_IRWXU is undefined on Windows, so we use a numerical const. |
+ fs.chmodSync(chromiumPath, 0o700); |
let dataDir = fs.mkdtempSync(path.join(os.tmpdir(), "chromium-data")); |
let child = null; |
return { |
kill: () => child && child.kill(), |
done: new Promise((resolve, reject) => |
{ |
child = childProcess.execFile(chromiumPath, [ |