Module: lib/runtime

Classes

BareScriptRuntimeError

Methods

(static) evaluateExpression(expr, optionsopt, nullable, localsopt, nullable, builtinsopt)

Evaluate an expression model

Parameters:
Name Type Attributes Default Description
expr Object

The expression model

options Object <optional>
<nullable>
null

The script execution options

locals Object <optional>
<nullable>
null

The local variables

builtins boolean <optional>
true

If true, include the built-in expression functions

Source:
Throws:
Returns:

The expression result

(static) executeScript(script, optionsopt)

Execute a BareScript model

Parameters:
Name Type Attributes Default Description
script Object

The BareScript model

options Object <optional>
{}

The script execution options

Source:
Throws:
Returns:

The script result