Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/io.js

Issue 9251039: Get rid of nested functions declarations that are not on top level (causes strict mode warnings) (Closed)
Patch Set: Created Jan. 23, 2013, 12:52 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/appSupport.js ('k') | lib/objectTabs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
},
« no previous file with comments | « lib/appSupport.js ('k') | lib/objectTabs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld