JSTransformer: pass on `--heap-growing-percent`

Reviewed By: jeanlauliac

Differential Revision: D5648906

fbshipit-source-id: 240b3044dd1268cf5f8bb41710647050368ddefb
This commit is contained in:
David Aurelio 2017-08-17 05:07:27 -07:00 committed by Facebook Github Bot
parent b3b2d10500
commit 35979c7b00
1 changed files with 4 additions and 2 deletions

View File

@ -58,8 +58,10 @@ function makeFarm(worker, methods, timeout, maxConcurrentWorkers) {
* Feel free to add more cases to the RegExp. A whitelist is preferred, to * Feel free to add more cases to the RegExp. A whitelist is preferred, to
* guarantee robustness when upgrading node, etc. * guarantee robustness when upgrading node, etc.
*/ */
execArgv: process.execArgv.filter(arg => execArgv: process.execArgv.filter(
/^--stack-trace-limit=[0-9]+$/.test(arg), arg =>
/^--stack[_-]trace[_-]limit=[0-9]+$/.test(arg) ||
/^--heap[_-]growing[_-]percent=[0-9]+$/.test(arg),
), ),
maxConcurrentCallsPerWorker: 1, maxConcurrentCallsPerWorker: 1,
maxConcurrentWorkers, maxConcurrentWorkers,