evalJS function

dynamic evalJS(
  1. String scriptCode
)

Call eval() with the content of scriptCode and returns the result.

Implementation

dynamic evalJS(String scriptCode) {
  var res = context.callMethod('eval', [scriptCode]);
  return res;
}