Skip to content

Instantly share code, notes, and snippets.

@indutny indutny/1.patch Secret
Created Sep 12, 2013

Embed
What would you like to do?
diff --git a/src/node_contextify.cc b/src/node_contextify.cc
index da63655..fa1ba07 100644
--- a/src/node_contextify.cc
+++ b/src/node_contextify.cc
@@ -65,8 +65,8 @@ class ContextifyContext {
, sandbox_(env->isolate(), sandbox)
, context_(env->isolate(), CreateV8Context(env))
, proxy_global_(env->isolate(), context()->Global()) {
- sandbox_.MakeWeak(this, SandboxFreeCallback);
- sandbox_.MarkIndependent();
+ proxy_global_.MakeWeak(this, SandboxFreeCallback);
+ proxy_global_.MarkIndependent();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.