Skip to content
ArchZombie edited this page Jun 16, 2013 · 23 revisions

Script Environment

The script will execute in a global environment, and the return value of the initial execution is the script object.

Some non-standard extensions to javascript are present. If you receive an error, you can get a backtrace using .backtracetext. This is assigned when the exception is thrown and it is a string separated with newlines '\n'.

The script functions are properties of the sys object (with one or two exceptions) and they allow you to interface with the C++ code in a safe way.