Skip to content

Instantly share code, notes, and snippets.

@indutny

indutny/1.patch Secret

Created September 12, 2013 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indutny/d267a53e69e8d4de0eb9 to your computer and use it in GitHub Desktop.
Save indutny/d267a53e69e8d4de0eb9 to your computer and use it in GitHub Desktop.
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