All native objects have prototype now
This commit is contained in:
parent
8cd4612fe0
commit
6e0cde5b24
9 changed files with 12 additions and 12 deletions
|
@ -97,7 +97,7 @@ const webFrameMethodsWithResult = [
|
|||
// Add JavaScript wrappers for WebContents class.
|
||||
const wrapWebContents = function (webContents) {
|
||||
// webContents is an EventEmitter.
|
||||
Object.setPrototypeOf(webContents, EventEmitter.prototype)
|
||||
Object.setPrototypeOf(webContents.__proto__, EventEmitter.prototype)
|
||||
|
||||
// Every remote callback from renderer process would add a listenter to the
|
||||
// render-view-deleted event, so ignore the listenters warning.
|
||||
|
@ -252,7 +252,7 @@ binding._setWrapWebContents(wrapWebContents)
|
|||
// Add JavaScript wrappers for Debugger class.
|
||||
const wrapDebugger = function (webContentsDebugger) {
|
||||
// debugger is an EventEmitter.
|
||||
Object.setPrototypeOf(webContentsDebugger, EventEmitter.prototype)
|
||||
Object.setPrototypeOf(webContentsDebugger.__proto__, EventEmitter.prototype)
|
||||
}
|
||||
|
||||
debuggerBinding._setWrapDebugger(wrapDebugger)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue