diff --git a/api.js b/api.js index 6bd14efe6..e5c5a7b92 100644 --- a/api.js +++ b/api.js @@ -198,7 +198,7 @@ class Api extends EventEmitter { } return Promise - .map(files, getPort) + .map(files, () => getPort()) .map(port => { const forkExecArgv = execArgv.slice(); let flagName = isInspect ? '--inspect' : '--debug';