Rhino
The Rhino engine, ported to common Kotlin: no native code, the same answers on every target.
KiteJs(Rhino) { languageVersion = LanguageVersion.ES6 }.use { js ->
println(js.evaluate("[1, 2, 3].map(x => x * 2).join()").asString()) // 2,4,6
}Content copied to clipboard
One thread holds one Rhino engine at a time: open a second only after closing the first, or on another thread.