env library

Low-level Dart APIs for a Node-API environment.

Classes

Env
Dart operations on the Node environment supplied to a module's register hook.
JsArguments
Arguments supplied to a JavaScript call, with strict Dart conversions.
JsFunction
A borrowed JavaScript function.
JsObject
A borrowed JavaScript object, valid during its callback or Env.withScope.
JsReference<T>
An owned JavaScript reference. Release it with dispose when no longer used.
JsSymbol
A borrowed JavaScript symbol. Its identity is kept when passed back to JS.
JsUndefined

Constants

undefined → const JsUndefined
JavaScript's undefined. Omitted arguments are distinguished by argument count.

Exceptions / Errors

JsException
A value thrown by JavaScript, preserved without string coercion.