This is Tw1nk's Typepad Profile.
Join Typepad and start following Tw1nk's activity
Join Now!
Already a member? Sign In
Tw1nk
Recent Activity
Hi, I noticed an issue with this code: /* Class constructor. Called at "new CustomClass()" */ JSObjectRef class_constructor_cb(JSContextRef ctx, JSObjectRef constructor, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) { g_message("Custom class constructor"); } Will cause an segmentation fault, this method needs to return something, I fixed it in my code with: /* Class constructor. Called at "new CustomClass()" */ JSObjectRef class_constructor_cb(JSContextRef context, JSObjectRef constructor, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) { g_message("Custom class constructor"); if (argumentCount > 0 && JSValueIsStrictEqual(ctx, arguments[0], JSValueMakeNumber(context, 0))) return JSValueToObject(context, JSValueMakeNumber(context, 1), exception); return JSValueToObject(context, JSValueMakeNumber(context, 0), exception); }
1 reply
Tw1nk is now following rvr
Dec 24, 2012
Tw1nk is now following The Typepad Team
Dec 24, 2012