refactor: ginify ServiceWorkerContext (#22756)

This commit is contained in:
Jeremy Apthorp 2020-03-20 14:15:14 -07:00 committed by GitHub
parent 5d657dece4
commit 22c17bcc5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 17 deletions

View file

@ -2,7 +2,7 @@
const { EventEmitter } = require('events');
const { app, deprecate } = require('electron');
const { fromPartition, Session, Cookies, Protocol, ServiceWorkerContext } = process.electronBinding('session');
const { fromPartition, Session, Cookies, Protocol } = process.electronBinding('session');
// Public API.
Object.defineProperties(exports, {
@ -17,7 +17,6 @@ Object.defineProperties(exports, {
});
Object.setPrototypeOf(Cookies.prototype, EventEmitter.prototype);
Object.setPrototypeOf(ServiceWorkerContext.prototype, EventEmitter.prototype);
Object.setPrototypeOf(Session.prototype, EventEmitter.prototype);
Session.prototype._init = function () {