mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Automated changes to remove implicit capture of self in blocks: Libraries/FBReactKit/BUCK
Reviewed By: javache Differential Revision: D3442470 fbshipit-source-id: 584a2bb3df5f7122166778b8fd44fae45560491e
This commit is contained in:
committed by
Facebook Github Bot 6
parent
41064991a2
commit
bcf4bb6edd
@@ -152,7 +152,7 @@ RCT_EXPORT_MODULE(TestModule)
|
||||
|
||||
_unregisteredTestModule = [UnregisteredTestModule new];
|
||||
_bridge = [[RCTBridge alloc] initWithBundleURL:nil
|
||||
moduleProvider:^{ return @[self, _unregisteredTestModule]; }
|
||||
moduleProvider:^{ return @[self, self->_unregisteredTestModule]; }
|
||||
launchOptions:nil];
|
||||
|
||||
_bridge.executorClass = [TestExecutor class];
|
||||
@@ -232,7 +232,7 @@ RCT_EXPORT_MODULE(TestModule)
|
||||
|
||||
dispatch_sync(_methodQueue, ^{
|
||||
// clear the queue
|
||||
XCTAssertTrue(_testMethodCalled);
|
||||
XCTAssertTrue(self->_testMethodCalled);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -263,7 +263,7 @@ RCT_EXPORT_MODULE(TestModule)
|
||||
[_bridge.batchedBridge handleBuffer:buffer];
|
||||
|
||||
dispatch_sync(_unregisteredTestModule.methodQueue, ^{
|
||||
XCTAssertTrue(_unregisteredTestModule.testMethodCalled);
|
||||
XCTAssertTrue(self->_unregisteredTestModule.testMethodCalled);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@ RCT_EXPORT_MODULE()
|
||||
|
||||
__block RCTTestCustomSetBridgeModule *module;
|
||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
||||
module = [_bridge moduleForClass:[RCTTestCustomSetBridgeModule class]];
|
||||
module = [self->_bridge moduleForClass:[RCTTestCustomSetBridgeModule class]];
|
||||
});
|
||||
|
||||
RUN_RUNLOOP_WHILE(!module);
|
||||
@@ -253,7 +253,7 @@ RCT_EXPORT_MODULE()
|
||||
|
||||
__block RCTLazyInitModule *module;
|
||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
||||
module = [_bridge moduleForClass:[RCTLazyInitModule class]];
|
||||
module = [self->_bridge moduleForClass:[RCTLazyInitModule class]];
|
||||
});
|
||||
|
||||
RUN_RUNLOOP_WHILE(!module);
|
||||
|
||||
Reference in New Issue
Block a user