lib/js/js.jsx

JSX interface to JavaScript

final native class js

static var global : Map.<variant>

The JavaScript global object. You should cast the value to use it in JSX

static function invoke(invocant : variant, methodName : string, args : Array.<variant>) : variant

Invokes an arbitrary method of an object.
e.g. js.invoke(js.global["Math"], "abs", [-10]) results in 10
invocant a JavaScript object
methodName a name of JavaScript method that the invocant has
args list of arguments passed to the method

static function eval(jsSource : string) : variant

Evaluates JavaScript source code

static function newFunction(argsAndBody : ...string) : variant

new Function