All native objects have prototype now
This commit is contained in:
parent
8cd4612fe0
commit
6e0cde5b24
9 changed files with 12 additions and 12 deletions
|
@ -17,6 +17,6 @@ Object.defineProperties(exports, {
|
|||
// Wraps native Session class.
|
||||
_setWrapSession(function (session) {
|
||||
// Session is an EventEmitter.
|
||||
Object.setPrototypeOf(session, EventEmitter.prototype)
|
||||
Object.setPrototypeOf(session.__proto__, EventEmitter.prototype)
|
||||
app.emit('session-created', session)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue