compile

abstract fun compile(source: String, fileName: String = "<script>"): JsScript(source)

Parses source once so it can be run many times.