Ver Fonte

Make object wrapper cache hold ObjectInstance type (#1326)

Co-authored-by: free.li <[email protected]>
Baowei Li(Free) há 3 anos atrás
pai
commit
3d05e3d350
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Jint/Engine.cs

+ 1 - 1
Jint/Engine.cs

@@ -53,7 +53,7 @@ namespace Jint
         internal readonly Dictionary<string, Type?> TypeCache = new();
         internal readonly Dictionary<string, Type?> TypeCache = new();
 
 
         // cache for already wrapped CLR objects to keep object identity
         // cache for already wrapped CLR objects to keep object identity
-        internal readonly ConditionalWeakTable<object, ObjectWrapper> _objectWrapperCache = new();
+        internal readonly ConditionalWeakTable<object, ObjectInstance> _objectWrapperCache = new();
 
 
         internal readonly JintCallStack CallStack;
         internal readonly JintCallStack CallStack;