diff options
Diffstat (limited to 'lib/diff.js')
-rw-r--r-- | lib/diff.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/diff.js b/lib/diff.js index 3123929a4..bf31673c4 100644 --- a/lib/diff.js +++ b/lib/diff.js @@ -199,7 +199,10 @@ function buildDiffHandler(config) { reject(e); }); child.on('exit', function () { - resolve(stdout); + // See comment in compile.js - seems needed if the child has immediately exited + setTimeout(function () { + resolve(stdout); + }, 0); }); }); }) |