mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
Remove callbackId when callback is removed from registry
This commit is contained in:
@@ -55,7 +55,11 @@ class CallbacksRegistry {
|
||||
}
|
||||
|
||||
remove (id) {
|
||||
return delete this.callbacks[id]
|
||||
const callback = this.callbacks[id]
|
||||
if (callback) {
|
||||
v8Util.deleteHiddenValue(callback, 'callbackId')
|
||||
delete this.callbacks[id]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user