mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +08:00
优化
This commit is contained in:
parent
b6a2fc4d93
commit
a9870a0ddb
@ -41,7 +41,11 @@ class JsTest {
|
||||
fun testFor() {
|
||||
val context = SCRIPT_ENGINE.getScriptContext(SimpleBindings())
|
||||
val scope = SCRIPT_ENGINE.getRuntimeScope(context)
|
||||
Context.enter().evaluateString(scope, printJs, "print", 1, null)
|
||||
try {
|
||||
Context.enter().evaluateString(scope, printJs, "print", 1, null)
|
||||
} finally {
|
||||
Context.exit()
|
||||
}
|
||||
@Language("js")
|
||||
val jsFor = """
|
||||
let result = 0
|
||||
|
Loading…
Reference in New Issue
Block a user