Move createIDWeakMap to v8Util

This commit is contained in:
Cheng Zhao 2016-05-11 19:30:06 +09:00
parent a077355d70
commit 49ac160ff7
6 changed files with 4 additions and 27 deletions

View file

@ -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) {