iOS: fix multi context,share same zone storage

This commit is contained in:
pengfei.zhou
2021-08-11 21:06:30 +08:00
committed by osborn
parent 33c681031d
commit aee2ed6027
3 changed files with 11 additions and 2 deletions

View File

@@ -34,6 +34,9 @@ - (instancetype)init {
_enableRecordSnapshot = NO;
_jsLoaderManager = [DoricJSLoaderManager new];
_contextManager = [DoricContextManager new];
_storageCaches = [[NSMapTable alloc] initWithKeyOptions:NSPointerFunctionsCopyIn
valueOptions:NSPointerFunctionsWeakMemory
capacity:0];
}
return self;
}