Move createIDWeakMap to v8Util
This commit is contained in:
parent
a077355d70
commit
49ac160ff7
6 changed files with 4 additions and 27 deletions
|
@ -3,7 +3,6 @@
|
|||
const electron = require('electron')
|
||||
const v8Util = process.atomBinding('v8_util')
|
||||
const {ipcMain} = electron
|
||||
const {createIDWeakMap} = process.atomBinding('id_weak_map')
|
||||
|
||||
const objectsRegistry = require('./objects-registry')
|
||||
|
||||
|
@ -14,7 +13,7 @@ const FUNCTION_PROPERTIES = [
|
|||
|
||||
// The remote functions in renderer processes.
|
||||
// id => Function
|
||||
let rendererFunctions = createIDWeakMap()
|
||||
let rendererFunctions = v8Util.createIDWeakMap()
|
||||
|
||||
// Merge two IDs together.
|
||||
let mergeIds = function (webContentsId, metaId) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue