replace __proto__ with Object.setPrototype
This commit is contained in:
parent
2c3cacdc08
commit
4e2f1311e0
10 changed files with 12 additions and 12 deletions
|
@ -27,7 +27,7 @@ Object.defineProperty(exports, 'defaultSession', {
|
|||
|
||||
var wrapSession = function (session) {
|
||||
// session is an EventEmitter.
|
||||
session.__proto__ = EventEmitter.prototype
|
||||
Object.setPrototypeOf(session, EventEmitter.prototype)
|
||||
}
|
||||
|
||||
bindings._setWrapSession(wrapSession)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue