From f64f5001da045ab0a2096129e71c5812f0a36281 Mon Sep 17 00:00:00 2001 From: Insomnia <282132315@qq.com> Date: Fri, 8 Nov 2019 10:35:12 +0800 Subject: [PATCH] add: debug switch --- iOS/Pod/Classes/Engine/DoricJSEngine.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iOS/Pod/Classes/Engine/DoricJSEngine.m b/iOS/Pod/Classes/Engine/DoricJSEngine.m index 7d6928d3..d5a9a25e 100644 --- a/iOS/Pod/Classes/Engine/DoricJSEngine.m +++ b/iOS/Pod/Classes/Engine/DoricJSEngine.m @@ -42,7 +42,9 @@ - (instancetype)init { _bridgeExtension = [[DoricBridgeExtension alloc] init]; dispatch_async(_jsQueue, ^() { self.timers = [[NSMutableDictionary alloc] init]; - self.jsExecutor = [[DoricJSRemoteExecutor alloc] init]; + // Debug: 切换 + // self.jsExecutor = [[DoricJSRemoteExecutor alloc] init]; + self.jsExecutor = [DoricJSCoreExecutor new]; self.registry = [[DoricRegistry alloc] init]; [self initJSExecutor]; [self initDoricEnvironment];