QuickJs

QuickJS-ng, the C engine, bound directly: the same engine on every target, compiled for each one, with the whole of ECMAScript 2024 and most of what came after.

KiteJs(QuickJs) { memoryLimit = 64L shl 20 }.use { js -> js.evaluate("1 + 1") }

In a browser or on Node, call load once before the first engine opens: it compiles the WebAssembly build, which a browser will not do synchronously on its main thread. Everywhere else the engine is linked in and load returns at once.

Properties

Link copied to clipboard
open override val isLoaded: Boolean
Link copied to clipboard
open override val name: String
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun load()
Link copied to clipboard
open override fun newConfig(): QuickJsConfig
Link copied to clipboard
open override fun open(config: QuickJsConfig): KiteJs