[MonkeyScript] [TitleIndex] [WordIndex

This doc details the global environment (environment, not a full list of global objects) that should be expected.

Special constraints

The "global", undefined, NaN, and Infinity variables are all made read-only. You cannot redefine these like SpiderMonkey normally still allows.

Global variables

These variables are added into the global scope.

global

A reference to the global scope (the global object). This is akin to window in the browser. Since global is a variable in the global scope referring to the global scope global.global.global` is valid.

monkeyscript

This variable is an object which houses various pieces of data about the monkeyscript environment.

The pairs inside are:

version
The version of the monkeyscript environment
_kernel

An object with various low-level kernel stuff. This will likely contain the IO system itself as well. This is not meant to be used by anything other than the standard code and banana which all must be able to work in an environment where banana() is not yet loaded. All low-level stuff should be done using the "kernel" banana and io should use the "io" banana, monkeyscript._kernel shouldn't be used to access those things.

rc
An array of RC script locations which were (or are being; if in the initialization stage) monkeyscript attempted (or is attempting) to exec when the environment is started up.

2010-07-23 04:25