iOS:add monitor
This commit is contained in:
@@ -87,6 +87,7 @@ - (id)findClass:(Class)clz target:(id)target context:(DoricContext *)context met
|
||||
[invocation invoke];
|
||||
} @catch (NSException *exception) {
|
||||
DoricLog(@"CallNative Error:%@", exception.reason);
|
||||
[context.driver.registry onException:exception];
|
||||
}
|
||||
};
|
||||
|
||||
@@ -102,6 +103,8 @@ - (id)findClass:(Class)clz target:(id)target context:(DoricContext *)context met
|
||||
ret = [JSValue valueWithObject:[returnValue copy] inContext:[JSContext currentContext]];
|
||||
} else {
|
||||
DoricLog(@"CallNative Error:%@", @"Must return object type");
|
||||
[context.driver.registry onLog:DoricLogTypeError
|
||||
message:[NSString stringWithFormat:@"CallNative Error:%@", @"Must return object type"]];
|
||||
ret = nil;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user