Remove -[RCTJSExecutor errorForJSError:]
Reviewed By: javache Differential Revision: D3814718 fbshipit-source-id: 9b8c91cb81d77fda4959df26806d54c9b7be42a0
This commit is contained in:
Родитель
3d1b79cd15
Коммит
31c8e20c8e
|
@ -56,14 +56,6 @@ RCT_EXTERN NSString *const RCTJavaScriptContextCreatedNotification;
|
||||||
*/
|
*/
|
||||||
- (instancetype)initWithUseCustomJSCLibrary:(BOOL)useCustomJSCLibrary;
|
- (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
|
* @experimental
|
||||||
* Pass a RCTJSContextProvider object to use an NSThread/JSContext pair that have already been created.
|
* 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];
|
return [NSError errorWithDomain:RCTErrorDomain code:1 userInfo:errorInfo];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSError *)errorForJSError:(JSValue *)jsError
|
|
||||||
{
|
|
||||||
return RCTNSErrorFromJSError(_jscWrapper, jsError.context.JSGlobalContextRef, jsError.JSValueRef);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if RCT_DEV
|
#if RCT_DEV
|
||||||
|
|
||||||
static void RCTInstallJSCProfiler(RCTBridge *bridge, JSContextRef context)
|
static void RCTInstallJSCProfiler(RCTBridge *bridge, JSContextRef context)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче