evaluate

abstract fun evaluate(code: String, moduleResolver: (String) -> String?? = null): JsResult

moduleResolver is consulted for an ES module the embedded bundle does not carry; return null for "not found". It is called during the evaluation, on the calling thread.