feat: roll Chromium to r564778 (#2681)
This roll includes: - https://chromium-review.googlesource.com/c/v8/v8/+/1086372 - [inspector] postpone API interrupts during creation of injected script This fixes worker flakiness. Fixes #2632
This commit is contained in:
parent
4bc23319a2
commit
a058468948
@ -29,12 +29,6 @@ class Worker extends EventEmitter {
|
||||
this._url = url;
|
||||
this._executionContextPromise = new Promise(x => this._executionContextCallback = x);
|
||||
this._client.once('Runtime.executionContextCreated', async event => {
|
||||
// Get a reference to the main object on the worker as a hack around https://crbug.com/846099.
|
||||
await this._client.send('Runtime.evaluate', {
|
||||
expression: 'this',
|
||||
returnByValue: false,
|
||||
contextId: event.executionContextId
|
||||
}).catch(debugError);
|
||||
const jsHandleFactory = remoteObject => new JSHandle(executionContext, client, remoteObject);
|
||||
const executionContext = new ExecutionContext(client, event.context, jsHandleFactory, null);
|
||||
this._executionContextCallback(executionContext);
|
||||
|
@ -8,7 +8,7 @@
|
||||
"node": ">=6.4.0"
|
||||
},
|
||||
"puppeteer": {
|
||||
"chromium_revision": "563942"
|
||||
"chromium_revision": "564778"
|
||||
},
|
||||
"scripts": {
|
||||
"unit": "node test/test.js",
|
||||
|
Loading…
Reference in New Issue
Block a user