Move createIDWeakMap to v8Util
This commit is contained in:
parent
a077355d70
commit
49ac160ff7
6 changed files with 4 additions and 27 deletions
|
@ -2,13 +2,12 @@
|
|||
|
||||
const v8Util = process.atomBinding('v8_util')
|
||||
const {ipcRenderer, CallbacksRegistry} = require('electron')
|
||||
const {createIDWeakMap} = process.atomBinding('id_weak_map')
|
||||
|
||||
const callbacksRegistry = new CallbacksRegistry()
|
||||
|
||||
var includes = [].includes
|
||||
|
||||
var remoteObjectCache = createIDWeakMap()
|
||||
var remoteObjectCache = v8Util.createIDWeakMap()
|
||||
|
||||
// Check for circular reference.
|
||||
var isCircular = function (field, visited) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue