iOS: fix when debugging cause crash

This commit is contained in:
pengfei.zhou 2022-07-15 19:23:04 +08:00 committed by osborn
parent c367b93121
commit fda2a9a02c

View File

@ -335,6 +335,9 @@ - (void)callbackTimer:(NSTimer *)timer {
}
- (id)jsValueToObject:(JSValue *)jsValue {
if([jsValue isKindOfClass:NSDictionary.class]){
return jsValue;
}
return [jsValue toObjectWithArrayBuffer];
}
@end