| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6663183 commit b825b3c
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -839,7 +839,7 @@ function Interface(stdin, stdout, args) { | |||
| 839 | 839 | // Run script automatically | |
| 840 | 840 | this.pause(); | |
| 841 | 841 | ||
| 842 | - setImmediate(() => { this.run(); }); | ||
| 842 | + setImmediate(() => { this.run(() => this.resume()); }); | ||
| 843 | 843 | } | |
| 844 | 844 | ||
| 845 | 845 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,13 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + | ||
| 3 | + const assert = require('assert'); | ||
| 4 | + const common = require('../common'); | ||
| 5 | + const spawn = require('child_process').spawn; | ||
| 6 | + | ||
| 7 | + const proc = spawn(process.execPath, ['debug', 'foo']); | ||
| 8 | + proc.stdout.setEncoding('utf8'); | ||
| 9 | + | ||
| 10 | + proc.stdout.once('data', common.mustCall((data) => { | ||
| 11 | + assert.strictEqual(data, 'debug> '); | ||
| 12 | + proc.kill(); | ||
| 13 | + })); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments