Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser error in electron-eval #50

Closed
ipsBruno opened this issue Aug 25, 2016 · 1 comment
Closed

Parser error in electron-eval #50

ipsBruno opened this issue Aug 25, 2016 · 1 comment

Comments

@ipsBruno
Copy link

ipsBruno commented Aug 25, 2016

Hello!

I get this error on use electron-webrtc in webtorrent-hybrid

teste

Aparently, is an error in newline-json dependencie. code:

Parser.prototype._transform = function(chunk, encoding, cb) {
this._buffer += this._decoder.write(chunk);
var lines = this._buffer.split(/\r?\n/);
this._buffer = lines.pop();
for (var l = 0; l < lines.length; l++) {
var line = lines[l];
try {
var obj = JSON.parse(line);
this.push((obj === null || obj === undefined) ? false : obj);
} catch (err) {
var context = lines.slice(l).join('\n')+'\n'+this._buffer;
er = new Error(err.message+' in '+JSON.stringify(context));
this.emit('error', er);

return;
}
}
cb();
};

My O.S is Windows Server 2008. Is compatible?

@mappum

@mappum
Copy link
Owner

mappum commented Aug 28, 2016

Should be fixed as of 0.9.2.

@mappum mappum closed this as completed Aug 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants