All native objects have prototype now
This commit is contained in:
parent
8cd4612fe0
commit
6e0cde5b24
9 changed files with 12 additions and 12 deletions
|
@ -5,7 +5,7 @@ const EventEmitter = require('events').EventEmitter
|
|||
const webFrame = process.atomBinding('web_frame').webFrame
|
||||
|
||||
// webFrame is an EventEmitter.
|
||||
Object.setPrototypeOf(webFrame, EventEmitter.prototype)
|
||||
Object.setPrototypeOf(webFrame.__proto__, EventEmitter.prototype)
|
||||
|
||||
// Lots of webview would subscribe to webFrame's events.
|
||||
webFrame.setMaxListeners(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue