mirror of
https://github.com/electron/electron.git
synced 2026-01-25 07:18:18 -05:00
Suppress the EventEmitter's warning for ObjectsRegistry.
It's possible that many objects subscribed to it.
This commit is contained in:
@@ -41,6 +41,8 @@ class ObjectsStore
|
||||
|
||||
class ObjectsRegistry extends EventEmitter
|
||||
constructor: ->
|
||||
@setMaxListeners Number.MAX_VALUE
|
||||
|
||||
# Objects in weak map will be not referenced (so we won't leak memory), and
|
||||
# every object created in browser will have a unique id in weak map.
|
||||
@objectsWeakMap = new IDWeakMap
|
||||
|
||||
Reference in New Issue
Block a user