Skip to content

Commit 82b7db2

Browse files
author
Gregg Van Hove
committed
Add null encoding when writing to streams on close
- Fixes jasmine/jasmine#1622
1 parent 791267b commit 82b7db2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jasmine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Jasmine.prototype.exitCodeCompletion = function(passed) {
207207
var streams = [process.stdout, process.stderr];
208208
var writesToWait = streams.length;
209209
streams.forEach(function(stream) {
210-
stream.write('', exitIfAllStreamsCompleted);
210+
stream.write('', null, exitIfAllStreamsCompleted);
211211
});
212212
function exitIfAllStreamsCompleted() {
213213
writesToWait--;

0 commit comments

Comments
 (0)