Remove -[RCTJSExecutor errorForJSError:]

Reviewed By: javache

Differential Revision: D3814718

fbshipit-source-id: 9b8c91cb81d77fda4959df26806d54c9b7be42a0
This commit is contained in:
Indragie Karunaratne 2016-09-02 17:31:26 -07:00 коммит произвёл Facebook Github Bot 0
Родитель 3d1b79cd15
Коммит 31c8e20c8e
2 изменённых файлов: 0 добавлений и 13 удалений

Просмотреть файл

@ -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)