| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3cfb313 commit 72d7159
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - const common = require('../common'); | ||
| 2 | + require('../common'); | ||
| 3 | 3 | const assert = require('assert'); | |
| 4 | 4 | ||
| 5 | 5 | const spawn = require('child_process').spawn; | |
@@ -13,6 +13,8 @@ child.stdout.setEncoding('utf8'); | |||
| 13 | 13 | child.stdout.on('data', function(c) { | |
| 14 | 14 | process.stdout.write(c); | |
| 15 | 15 | stdout += c; | |
| 16 | + if (stdout.includes('> THROW 2')) | ||
| 17 | + child.stdin.end(); | ||
| 16 | 18 | }); | |
| 17 | 19 | ||
| 18 | 20 | child.stdin.write = function(original) { | |
@@ -46,8 +48,6 @@ child.stdout.once('data', function() { | |||
| 46 | 48 | ' });\n' + | |
| 47 | 49 | ' });\n' + | |
| 48 | 50 | '});"";\n'); | |
| 49 | - | ||
| 50 | - setTimeout(child.stdin.end.bind(child.stdin), common.platformTimeout(200)); | ||
| 51 | 51 | } | |
| 52 | 52 | }); | |
| 53 | 53 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments