lib: wrap tick_processor scripts in IIFE
PR-URL: https://github.com/nodejs/node/pull/4722 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
This commit is contained in:
parent
01f82f0685
commit
953173b0d7
@ -25,5 +25,8 @@ if (process.platform === 'darwin') {
|
|||||||
tickArguments.push('--windows');
|
tickArguments.push('--windows');
|
||||||
}
|
}
|
||||||
tickArguments.push.apply(tickArguments, process.argv.slice(1));
|
tickArguments.push.apply(tickArguments, process.argv.slice(1));
|
||||||
script = 'arguments = ' + JSON.stringify(tickArguments) + ';\n' + script;
|
script = `(function() {
|
||||||
|
arguments = ${JSON.stringify(tickArguments)};
|
||||||
|
${script}
|
||||||
|
})()`;
|
||||||
eval(script);
|
eval(script);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user