feat:Android and iOS monitor use DoricContext as parameter
This commit is contained in:
@@ -44,7 +44,7 @@ - (void)resolve:(id)result {
|
||||
setExceptionCallback:^(NSException *e) {
|
||||
[self.context.driver.registry
|
||||
onException:e
|
||||
source:self.context.source];
|
||||
inContext:self.context];
|
||||
}];
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ - (void)reject:(id)result {
|
||||
setExceptionCallback:^(NSException *e) {
|
||||
[self.context.driver.registry
|
||||
onException:e
|
||||
source:self.context.source];
|
||||
inContext:self.context];
|
||||
}];
|
||||
}
|
||||
@end
|
||||
|
@@ -108,7 +108,7 @@ - (id)findClass:(Class)clz target:(id)target method:(NSString *)name promise:(Do
|
||||
[invocation invoke];
|
||||
} @catch (NSException *exception) {
|
||||
DoricLog(@"CallNative Error:%@", exception.reason);
|
||||
[self.doricContext.driver.registry onException:exception source:self.doricContext.source];
|
||||
[self.doricContext.driver.registry onException:exception inContext:self.doricContext];
|
||||
}
|
||||
};
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
|
Reference in New Issue
Block a user