Index: lib/io.js |
=================================================================== |
--- a/lib/io.js |
+++ b/lib/io.js |
@@ -184,17 +184,17 @@ let IO = exports.IO = |
callback(e); |
} |
else |
callback(null); |
} |
}, null); |
let lineBreak = this.lineBreak; |
- function writeNextChunk() |
+ let writeNextChunk = function() |
{ |
let buf = []; |
let bufLen = 0; |
while (bufLen < 0x4000) |
{ |
try |
{ |
let str = data.next(); |
@@ -239,17 +239,17 @@ let IO = exports.IO = |
outStream.close(); |
if (timeLineID) |
{ |
TimeLine.asyncEnd(timeLineID); |
} |
} |
}, 0, 0, Services.tm.currentThread); |
- } |
+ }; |
writeNextChunk(); |
} |
catch (e) |
{ |
callback(e); |
} |
}, |