compile method

JsCompiled compile(
  1. String script, [
  2. String filepath = "<inline>"
])
override

Implementation

JsCompiled compile(String script, [String filepath = "<inline>"]) {
  if (_makeFunction == null) {
    _makeFunction = _eval.apply(["(function(source) {return new Function(source);})"]);
  }
  return WebJsCompiled(_makeFunction?.apply([script]));
}