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") }Content copied to clipboard
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.