mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
Some checks failed
Test Build / prepare (push) Has been cancelled
Test Build / build (app, release) (push) Has been cancelled
Test Build / build (app, releaseA) (push) Has been cancelled
Test Build / prerelease (push) Has been cancelled
Test Build / lanzou (push) Has been cancelled
Test Build / test_Branch (push) Has been cancelled
Test Build / telegram (push) Has been cancelled
Some checks failed
Test Build / prepare (push) Has been cancelled
Test Build / build (app, release) (push) Has been cancelled
Test Build / build (app, releaseA) (push) Has been cancelled
Test Build / prerelease (push) Has been cancelled
Test Build / lanzou (push) Has been cancelled
Test Build / test_Branch (push) Has been cancelled
Test Build / telegram (push) Has been cancelled
This commit is contained in:
@@ -70,6 +70,13 @@ object SharedJsScope {
|
||||
if (scope is ScriptableObject) {
|
||||
scope.sealObject()
|
||||
}
|
||||
if (scope is Map<*, *>) {
|
||||
scope.entries.forEach {
|
||||
if (it is ScriptableObject) {
|
||||
it.sealObject()
|
||||
}
|
||||
}
|
||||
}
|
||||
scopeMap[key] = WeakReference(scope)
|
||||
}
|
||||
return scope
|
||||
|
||||
Reference in New Issue
Block a user