Global(native)
Following functions and variables that "live" in global namespace so they accessible in script without any namespace designator
Example
var r = eval( " 348.0 / 23.7 " ); console << r << "\n";
Properties
-
console : Stream
Standard input/output stream. Intended to use for debugging purposes.
Methods
-
crackUrl(url) : Object
Parses the url string.
-
eval(input[, env]) : Object
Evaluates (interprets) input and returns its value. If input is a string then function tries to interpret it as if it contains script source code. If input is a stream object then it compiles and executes source code from it.
-
fetch(file) : Object
Restores value previously written into the file (filename) or stream by function store.
-
gc()
Invokes garbage collector.
-
hash(value) : Integer
Hash value of its argument.
-
membersOf(obj) : Object
Creates map (simple object) that has the same set of properties as the obj.
-
parseData(input) : Object
JSON++ data parser.Evaluates (interprets) data literal at the input and returns its value. Input shall contain valid data literal expression otherwise parsing exception will be thrown.
-
rand(maxNumber) : Integer
Generate a random number between 0 and maxNumber-1.
-
store(file, value) : Boolean
Stores the value into file filename or stream in binary form.
-
symbol(string) : Symbol
Function returns symbol of the string.
Events
-
onError(exp)
Handle application errors