优化
This commit is contained in:
@@ -70,6 +70,13 @@ object SharedJsScope {
|
|||||||
if (scope is ScriptableObject) {
|
if (scope is ScriptableObject) {
|
||||||
scope.sealObject()
|
scope.sealObject()
|
||||||
}
|
}
|
||||||
|
if (scope is Map<*, *>) {
|
||||||
|
scope.entries.forEach {
|
||||||
|
if (it is ScriptableObject) {
|
||||||
|
it.sealObject()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
scopeMap[key] = WeakReference(scope)
|
scopeMap[key] = WeakReference(scope)
|
||||||
}
|
}
|
||||||
return scope
|
return scope
|
||||||
|
|||||||
Reference in New Issue
Block a user