mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Re-enable testUnderlyingBridgeIsDeallocated
Reviewed By: jspahrsummers Differential Revision: D2803543 fb-gh-sync-id: d62b68b1e23fad2a0b3d4e490459b1f38ca2dca1
This commit is contained in:
committed by
facebook-github-bot-6
parent
e730a9fdd0
commit
435efadbba
@@ -175,9 +175,7 @@ RCT_EXTERN NSArray<Class> *RCTGetModuleClasses(void);
|
||||
dispatch_group_notify(initModulesAndLoadSource, dispatch_get_main_queue(), ^{
|
||||
RCTBatchedBridge *strongSelf = weakSelf;
|
||||
if (sourceCode && strongSelf.loading) {
|
||||
dispatch_async(bridgeQueue, ^{
|
||||
[weakSelf executeSourceCode:sourceCode];
|
||||
});
|
||||
[strongSelf executeSourceCode:sourceCode];
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -570,6 +568,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR
|
||||
}
|
||||
|
||||
RCTAssertMainThread();
|
||||
RCTAssert(_javaScriptExecutor != nil, @"Can't complete invalidation without a JS executor");
|
||||
|
||||
_loading = NO;
|
||||
_valid = NO;
|
||||
@@ -605,11 +604,13 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithBundleURL:(__unused NSURL *)bundleUR
|
||||
if (RCTProfileIsProfiling()) {
|
||||
RCTProfileUnhookModules(self);
|
||||
}
|
||||
|
||||
_moduleDataByName = nil;
|
||||
_moduleDataByID = nil;
|
||||
_moduleClassesByID = nil;
|
||||
_modulesByName_DEPRECATED = nil;
|
||||
_frameUpdateObservers = nil;
|
||||
_pendingCalls = nil;
|
||||
|
||||
}];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user