GraalCallback

class GraalCallback(fn: Value) : JimCallback

A raw GraalJS guest function. JavaScript tolerates arity mismatches (extra args ignored, missing ones become undefined), so every provided arg is passed through as-is. Must be called on the JS thread (the GraalJS org.graalvm.polyglot.Context is single-threaded) — which is where dispatch already runs.

Constructors

Link copied to clipboard
constructor(fn: Value)

Functions

Link copied to clipboard
open override fun invoke(args: List<Any?>)

Invoke with positional args; surplus/missing args are reconciled per-implementation.