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

Unified Diff: lib/legacyIO.js

Issue 29408710: Issue 5050 - Make legacy extension use WebExtensions I/O (Closed) Base URL: https://hg.adblockplus.org/adblockplus
Patch Set: Created April 10, 2017, 11:23 a.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
Index: lib/legacyIO.js
===================================================================
copy from lib/io.js
copy to lib/legacyIO.js
--- a/lib/io.js
+++ b/lib/legacyIO.js
@@ -89,21 +89,17 @@ let IO = exports.IO =
{
let oldBuffer = buffer;
buffer = data.substr(index + 1);
data = data.substr(0, index + 1);
let lines = data.split(/[\r\n]+/);
lines.pop();
lines[0] = oldBuffer + lines[0];
for (let i = 0; i < lines.length; i++)
- {
- let promise = listener.process(lines[i]);
- if (promise)
- yield promise;
- }
+ listener.process(lines[i]);
}
finally
{
processing = false;
data = buffer;
buffer = "";
yield* onProgress(data);

Powered by Google App Engine
This is Rietveld