From 0646551d7690cd54847eb468f8e43d71ebebdda9 Mon Sep 17 00:00:00 2001 From: Lulu Wu Date: Mon, 27 Jun 2022 09:22:08 -0700 Subject: [PATCH] Remove "Early" in Js error reporting function Summary: We will use this error reporting pipeline for all js errors not only early js errors, so remove all "early" prefixes. Changelog: [General][Changed] - Remove "Early" in Js error reporting pipeline Reviewed By: fkgozali Differential Revision: D37379339 fbshipit-source-id: d44772818ead977a164c8632c081863851046be6 --- React/CoreModules/RCTExceptionsManager.h | 2 +- React/CoreModules/RCTExceptionsManager.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/React/CoreModules/RCTExceptionsManager.h b/React/CoreModules/RCTExceptionsManager.h index 34772ba6896463..76d36423d722aa 100644 --- a/React/CoreModules/RCTExceptionsManager.h +++ b/React/CoreModules/RCTExceptionsManager.h @@ -38,7 +38,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)reportFatalException:(nullable NSString *)message stack:(nullable NSArray *)stack exceptionId:(double)exceptionId; -- (void)reportEarlyJsException:(NSString *)errorMap; +- (void)reportJsException:(NSString *)errorMap; @property (nonatomic, weak) id delegate; diff --git a/React/CoreModules/RCTExceptionsManager.mm b/React/CoreModules/RCTExceptionsManager.mm index 7211a77cbed4e5..9d6aafc044be4f 100644 --- a/React/CoreModules/RCTExceptionsManager.mm +++ b/React/CoreModules/RCTExceptionsManager.mm @@ -150,7 +150,7 @@ - (void)reportFatal:(NSString *)message } } -- (void)reportEarlyJsException:(NSString *)errorStr +- (void)reportJsException:(NSString *)errorStr { NSData *jsonData = [errorStr dataUsingEncoding:NSUTF8StringEncoding]; NSError *jsonError;