add: debug switch

This commit is contained in:
Insomnia 2019-11-08 10:35:12 +08:00
parent e5106a25ba
commit f64f5001da

View File

@ -42,7 +42,9 @@ - (instancetype)init {
_bridgeExtension = [[DoricBridgeExtension alloc] init]; _bridgeExtension = [[DoricBridgeExtension alloc] init];
dispatch_async(_jsQueue, ^() { dispatch_async(_jsQueue, ^() {
self.timers = [[NSMutableDictionary alloc] init]; 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.registry = [[DoricRegistry alloc] init];
[self initJSExecutor]; [self initJSExecutor];
[self initDoricEnvironment]; [self initDoricEnvironment];