Wren

wrenjs is an ES6 module.
Source:
Example
import * as Wren from "./path/to/wren.js";

Classes

VM

Members

(static) ErrorType

The type of error returned by the [VM].
Properties:
Name Type Description
COMPILE number A syntax or resolution error detected at compile time.
RUNTIME number The error message for a runtime error.
STACK_TRACE number One entry of a runtime error's stack trace.
Source:

(static) Result

The result of a VM interpreting wren source.
Properties:
Name Type Description
SUCCESS number the VM interpreted the source without error.
COMPILE_ERROR number the VM experienced a compile error.
RUNTIME_ERROR number the VM experienced a runtime error.
Source:

Methods

(static) getVersionNumber() → {number}

Get the current wren version number. Can be used to range checks over versions.
Source:
Returns:
Type:
number
A monotonically increasing numeric representation of the version number.