fix: use context counter as contextId
For sandboxed renderer it may not have a node::Environment in the context, using a increasing counter as contextId works for all cases.
This commit is contained in:
parent
9acfe34286
commit
e2029435c4
10 changed files with 67 additions and 24 deletions
|
@ -9,7 +9,7 @@ const webViewConstants = require('./web-view-constants')
|
|||
const hasProp = {}.hasOwnProperty
|
||||
|
||||
// An unique ID that can represent current context.
|
||||
const contextId = v8Util.getContextId()
|
||||
const contextId = v8Util.getHiddenValue(global, 'contextId')
|
||||
|
||||
// ID generator.
|
||||
let nextId = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue