diff --git a/React/Executors/RCTJSCExecutor.h b/React/Executors/RCTJSCExecutor.h index 66d61a16b..47a259ed3 100644 --- a/React/Executors/RCTJSCExecutor.h +++ b/React/Executors/RCTJSCExecutor.h @@ -56,14 +56,6 @@ RCT_EXTERN NSString *const RCTJavaScriptContextCreatedNotification; */ - (instancetype)initWithUseCustomJSCLibrary:(BOOL)useCustomJSCLibrary; -/** - * Create a NSError from a JSError object. - * - * If available, the error's userInfo property will contain the JS stacktrace under - * the RCTJSStackTraceKey key. - */ -- (NSError *)errorForJSError:(JSValue *)jsError; - /** * @experimental * Pass a RCTJSContextProvider object to use an NSThread/JSContext pair that have already been created. diff --git a/React/Executors/RCTJSCExecutor.mm b/React/Executors/RCTJSCExecutor.mm index db31dd033..b0a61b516 100644 --- a/React/Executors/RCTJSCExecutor.mm +++ b/React/Executors/RCTJSCExecutor.mm @@ -238,11 +238,6 @@ static NSError *RCTNSErrorFromJSError(RCTJSCWrapper *jscWrapper, JSContextRef co return [NSError errorWithDomain:RCTErrorDomain code:1 userInfo:errorInfo]; } -- (NSError *)errorForJSError:(JSValue *)jsError -{ - return RCTNSErrorFromJSError(_jscWrapper, jsError.context.JSGlobalContextRef, jsError.JSValueRef); -} - #if RCT_DEV static void RCTInstallJSCProfiler(RCTBridge *bridge, JSContextRef context)