JSValueRef Function::StaticFunctionCallback(JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) { Function *thiz = objMap[function]; if (thiz) { return thiz->FunctionCallback(ctx,function,thisObject,argumentCount,arguments,exception); } return NULL; }