feat(chromium): roll Chromium to r574897 (#2887)

This roll includes:
- https://crrev.com/574785 - DevTools: allow tracing over the remote debugging pipe.

This fixes tracing over the remote debugging pipe.
This commit is contained in:
Joel Einbinder 2018-07-13 11:07:24 -07:00 committed by Andrey Lushnikov
parent 8802253e13
commit e7b0e0f448
2 changed files with 5 additions and 5 deletions

View File

@ -35,14 +35,14 @@ class Pipe extends EventEmitter {
*/
send(message) {
this._pipeWrite.write(message);
this._pipeWrite.write('\n');
this._pipeWrite.write('\0');
}
/**
* @param {!Buffer} buffer
*/
_dispatch(buffer) {
let end = buffer.indexOf('\n');
let end = buffer.indexOf('\0');
if (end === -1) {
this._pendingMessage += buffer.toString();
return;
@ -51,11 +51,11 @@ class Pipe extends EventEmitter {
this.emit('message', message);
let start = end + 1;
end = buffer.indexOf('\n', start);
end = buffer.indexOf('\0', start);
while (end !== -1) {
this.emit('message', buffer.toString(undefined, start, end));
start = end + 1;
end = buffer.indexOf('\n', start);
end = buffer.indexOf('\0', start);
}
this._pendingMessage = buffer.toString(undefined, start);
}

View File

@ -8,7 +8,7 @@
"node": ">=6.4.0"
},
"puppeteer": {
"chromium_revision": "571375"
"chromium_revision": "574897"
},
"scripts": {
"unit": "node test/test.js",