From 682b6ebcb482f3ea71a536f0429088923d72b5af Mon Sep 17 00:00:00 2001 From: pengfeizhou Date: Sun, 7 Feb 2021 18:08:43 +0800 Subject: [PATCH] iOS:init registry synchronously --- doric-iOS/Pod/Classes/Engine/DoricJSEngine.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];