mirror of
https://github.com/nodejs/node.git
synced 2025-05-05 15:32:15 +00:00

* Changes to messages. * V8 enabled proxy support by default. The --harmony_proxies flag is now gone. PR-URL: https://github.com/nodejs/node/pull/6482 Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
22 lines
542 B
JavaScript
22 lines
542 B
JavaScript
'use strict';
|
|
require('../common');
|
|
var assert = require('assert');
|
|
var spawn = require('child_process').spawn;
|
|
|
|
if (process.argv[2] === 'child') {
|
|
process.stdout.write(JSON.stringify(process.execArgv));
|
|
} else {
|
|
var execArgv = ['--stack-size=256'];
|
|
var args = [__filename, 'child', 'arg0'];
|
|
var child = spawn(process.execPath, execArgv.concat(args));
|
|
var out = '';
|
|
|
|
child.stdout.on('data', function(chunk) {
|
|
out += chunk;
|
|
});
|
|
|
|
child.on('close', function() {
|
|
assert.deepStrictEqual(JSON.parse(out), execArgv);
|
|
});
|
|
}
|