Provide more control about the target object/namespace where a v8 module is registered to.
This commit is contained in:
parent
6754bf2b49
commit
008adca72f
2 changed files with 6 additions and 4 deletions
|
|
@ -386,12 +386,11 @@ fail:
|
|||
%{
|
||||
extern "C" {
|
||||
|
||||
void $jsname_initialize(v8::Handle<v8::Context> context)
|
||||
void $jsname_initialize(v8::Handle<v8::Context> context, v8::Handle<v8::Object> global_obj)
|
||||
{
|
||||
SWIG_InitializeModule(0);
|
||||
|
||||
v8::HandleScope scope;
|
||||
v8::Local<v8::Object> global_obj = context->Global();
|
||||
|
||||
// a class template for creating proxies of undefined types
|
||||
SWIGV8_SWIGTYPE_Proxy_class_templ = SWIGV8_CreateClassTemplate("SwigProxy");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue