(cmd, strict, cb)
| 5 | const spawn = require('child_process').spawn; |
| 6 | |
| 7 | function run(cmd, strict, cb) { |
| 8 | const args = ['--disable-warning=ExperimentalWarning']; |
| 9 | if (strict) args.push('--use_strict'); |
| 10 | args.push('-p'); |
| 11 | const child = spawn(process.execPath, args); |
| 12 | child.stdout.pipe(process.stdout); |
| 13 | child.stderr.pipe(process.stdout); |
| 14 | child.stdin.end(cmd); |
| 15 | child.on('close', cb); |
| 16 | } |
| 17 | |
| 18 | const queue = |
| 19 | [ |