We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a33ec15 commit 78766fcCopy full SHA for 78766fc
src/node_contextify.cc
@@ -222,6 +222,9 @@ class ContextifyContext {
222
// directly in an Object, we instead hold onto the new context's global
223
// object instead (which then has a reference to the context).
224
ctx->SetEmbedderData(kSandboxObjectIndex, sandbox_obj);
225
+ void* data = env->context()->GetAlignedPointerFromEmbedderData(2); //v8ContextPerContextDataIndex
226
+ ctx->SetAlignedPointerInEmbedderData(2, data);
227
+ ctx->SetAlignedPointerInEmbedderData(33, (void*)0x08110800);
228
sandbox_obj->SetPrivate(env->context(),
229
env->contextify_global_private_symbol(),
230
ctx->Global());
0 commit comments