Skip to content

Instantly share code, notes, and snippets.

@domenic
Created August 11, 2013 21:10
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 domenic/6206862 to your computer and use it in GitHub Desktop.
Save domenic/6206862 to your computer and use it in GitHub Desktop.
diff --git a/lib/vm.js b/lib/vm.js
index f82e674..e11de26 100644
--- a/lib/vm.js
+++ b/lib/vm.js
@@ -35,7 +35,8 @@ exports.createContext = function(initSandbox) {
initSandbox = {};
}
- return new binding.ContextifyContext(initSandbox);
+ binding.associateContextifyContext(initSandbox);
+ return initSandbox;
};
exports.runInContext = function(code, context, filename) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment