Add __autoreleasing paramters to fix block-capture-autoreleasing warning

Differential Revision: D6196088

fbshipit-source-id: 38a4fd33800113fe78c5e4db27ea0d1354568ce0
This commit is contained in:
Jakub Grzmiel 2017-10-31 08:52:35 -07:00 committed by Facebook Github Bot
parent 587225ab45
commit 308360ef7f
1 changed files with 1 additions and 1 deletions

View File

@ -768,7 +768,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR
- (JSValue *)callFunctionOnModule:(NSString *)module
method:(NSString *)method
arguments:(NSArray *)arguments
error:(NSError **)error
error:(NSError __autoreleasing **)error
{
RCTJSCExecutor *jsExecutor = (RCTJSCExecutor *)_javaScriptExecutor;
if (![jsExecutor isKindOfClass:[RCTJSCExecutor class]]) {