GraalVMContext
An implementation of the PolyglotContext interface wrapping a GraalVM context.
Functions
Link copied to clipboard
Link copied to clipboard
open override fun evaluate(source: Source, options: PolyglotContext.EvaluationOptions): PolyglotValue
Link copied to clipboard
Execute the given JavaScript Source, returning the result. This is equivalent to calling PolyglotContext.evaluate and selecting JavaScript as source language.
fun PolyglotContext.javascript(source: String, esm: Boolean = false, name: String? = null, internals: Boolean = false, interactive: Boolean = false, cached: Boolean = true, uri: URI? = null, unlockInternals: Boolean = false): PolyglotValue
Execute the given JavaScript source code, returning the result. This is equivalent to calling PolyglotContext.evaluate and selecting JavaScript as source language.
Link copied to clipboard