KiteJs
An engine and the global scope that goes with it. One instance belongs to one thread.
KiteJs { languageVersion = LanguageVersion.ES6 }.use { js ->
js.global.function("shout") { args -> args.first().asString().uppercase() }
println(js.evaluate("shout('hi')").asString()) // HI
}Content copied to clipboard