Skip to content

Commit

Permalink
fix(ios): convert JSValue* to JSValueRef directly
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Jan 26, 2021
1 parent 1affe49 commit 33508b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iphone/TitaniumKit/TitaniumKit/Sources/API/TiBindingTiValue.m
Original file line number Diff line number Diff line change
Expand Up @@ -358,5 +358,9 @@ JSValueRef TiBindingTiValueFromNSObject(JSContextRef jsContext, NSObject *obj)
args[0] = JSValueMakeNumber(jsContext, number);
return JSObjectMakeDate(jsContext, 1, args, NULL);
}
if ([obj isKindOfClass:[JSValue class]]) {
JSValue *jsValue = (JSValue *)obj;
return jsValue.JSValueRef;
}
return TiBindingTiValueFromProxy(jsContext, (TiProxy *)obj);
}

0 comments on commit 33508b6

Please sign in to comment.