Package-level declarations

Types

Link copied to clipboard

Engine plugin adding support for JavaScript.

Functions

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.