Skip to content

Instantly share code, notes, and snippets.

@domenic
Created August 18, 2013 15:24
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/6262189 to your computer and use it in GitHub Desktop.
Save domenic/6262189 to your computer and use it in GitHub Desktop.
what i did to pass arguments to constructors
Local<FunctionTemplate> ljs_tmpl = PersistentToLocal(node_isolate, js_tmpl);
Local<Value> constructor_args[] = { sandbox };
Local<Object> contextify_context_object =
ljs_tmpl->GetFunction()->NewInstance(1, constructor_args);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment