diff --git a/doric-iOS/Pod/Classes/Engine/DoricJSEngine.m b/doric-iOS/Pod/Classes/Engine/DoricJSEngine.m index 4606a97d..18a513ca 100644 --- a/doric-iOS/Pod/Classes/Engine/DoricJSEngine.m +++ b/doric-iOS/Pod/Classes/Engine/DoricJSEngine.m @@ -87,9 +87,9 @@ - (instancetype)init { @"deviceBrand": @"Apple", @"deviceModel": platform, }; + self.registry = [[DoricRegistry alloc] init]; [self ensureRunOnJSThread:^() { self.timers = [[NSMutableDictionary alloc] init]; - self.registry = [[DoricRegistry alloc] init]; self.bridgeExtension = [DoricBridgeExtension new]; self.bridgeExtension.registry = self.registry; [self initJSEngine];