Implemented SetModule / GetModule for JSC to allow type sharing across modules - with fix for passing NULL to non-pointer argument
This commit is contained in:
parent
0e3693bb8e
commit
86a62e15b1
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ SWIG_JSC_SetModule(void *clientdata, swig_module_info *swig_module) {
|
|||
JSObjectRef object = JSObjectMake(context, classRef, NULL);
|
||||
JSObjectSetPrivate(object, (void*)swig_module);
|
||||
|
||||
JSObjectSetProperty(context, globalObject, moduleName, object, NULL, NULL);
|
||||
JSObjectSetProperty(context, globalObject, moduleName, object, kJSPropertyAttributeNone, NULL);
|
||||
|
||||
JSClassRelease(classRef);
|
||||
JSStringRelease(moduleName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue