diff --git a/doric-iOS/Pod/Classes/Engine/DoricJSCoreExecutor.m b/doric-iOS/Pod/Classes/Engine/DoricJSCoreExecutor.m index 02d508a4..d6d72dba 100644 --- a/doric-iOS/Pod/Classes/Engine/DoricJSCoreExecutor.m +++ b/doric-iOS/Pod/Classes/Engine/DoricJSCoreExecutor.m @@ -39,6 +39,7 @@ - (instancetype)init { - (void)checkJSException { if (self.jsContext.exception) { NSString *errMsg = [NSString stringWithFormat:@"%@ (line %@ in the generated bundle)\n/***StackTrace***/\n%@\n/***StackTrace***/", self.jsContext.exception, self.jsContext.exception[@"line"], self.jsContext.exception[@"stack"]]; + self.jsContext.exception = nil; @throw [[NSException alloc] initWithName:@"DoricJS" reason:errMsg userInfo:nil]; } }