--max-stack-size was removed in 3a87b31, use --stack-size instead.
What's more, a zero length stack will likely crash the process.
} else if (process.argv[2] === 'child') {
fork(__filename, ['fork']);
} else {
- var execArgv = ['--harmony_proxies', '--max-stack-size=0'];
+ var execArgv = ['--harmony_proxies', '--stack-size=64'];
var args = [__filename, 'child', 'arg0'];
var child = spawn(process.execPath, execArgv.concat(args));
if (process.argv[2] === 'child') {
process.stdout.write(JSON.stringify(process.execArgv));
} else {
- var execArgv = ['--harmony_proxies', '--max-stack-size=0'];
+ var execArgv = ['--harmony_proxies', '--stack-size=64'];
var args = [__filename, 'child', 'arg0'];
var child = spawn(process.execPath, execArgv.concat(args));
var out = '';