All native objects have prototype now

This commit is contained in:
Cheng Zhao 2016-08-02 17:12:17 +09:00
parent 8cd4612fe0
commit 6e0cde5b24
9 changed files with 12 additions and 12 deletions

View file

@ -1,6 +1,6 @@
const {EventEmitter} = require('events')
const {systemPreferences} = process.atomBinding('system_preferences')
Object.setPrototypeOf(systemPreferences, EventEmitter.prototype)
Object.setPrototypeOf(systemPreferences.__proto__, EventEmitter.prototype)
module.exports = systemPreferences