js library

Constants

isJS → const bool
Whether we're running as JS (browser or Node.js).

Properties

isBrowser → bool
Whether we're running as browser (not Node.js or Dart VM).
no setter
isNodeJs → bool
Whether we're running as Node.js (not browser or Dart VM).
no setter

Functions

wrapJSExceptions<T>(T callback()) → T
Runs callback, wrapping any primitive JS objects it throws so they don't crash when caught by Dart code.