mrdocs::js::Scope
A JavaScript scope
Member Functions
Name |
Description |
|
Constructor. |
|
Destructor. |
Compile a script and push results to stack. |
|
Compile a script and push results to stack. |
|
Compile and run a expression. |
|
Return a global object if it exists. |
|
Return the global object. |
|
Push a new array to the stack |
|
Push a boolean to the stack |
|
Push a double to the stack |
|
Push an integer to the stack |
|
Push a new object to the stack |
|
Push a string to the stack |
|
Compile and run a script. |
|
Set a global object. |
Description
This class represents a JavaScript scope under which we can define variables and execute scripts.
Each scope is a section of the context heap in the JavaScript interpreter. A javascript variable is defined by creating a Value
that is associated with this Scope, i.e., subsection of the context heap.
When a scope is destroyed, the heap section is popped and all variables defined in that scope are invalidated.
For this reason, two scopes of the same context heap cannot be manipulated at the same time.
Created with MrDocs