mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
Remove -[RCTJSExecutor errorForJSError:]
Reviewed By: javache Differential Revision: D3814718 fbshipit-source-id: 9b8c91cb81d77fda4959df26806d54c9b7be42a0
This commit is contained in:
parent
3d1b79cd15
commit
31c8e20c8e
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user