evaluate

fun evaluate(code: String)

Run a one-off TypeScript snippet (used by /jim eval) on GraalJS, so it gets real ECMAScript (arrays, closures, let, JSON). The JIM API objects (Jim, Event, ChatLib, ...) are bound as globals by GraalRuntime, so no import line is needed.