Changes to get traditional functions with args. working
git-svn-id: svn://10.0.0.236/trunk@35302 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -3,11 +3,19 @@ import java.util.Hashtable;
|
||||
|
||||
class Environment {
|
||||
|
||||
JSObject scope = new JSObject("globals", null);
|
||||
JSScope scope = new JSScope("globals");
|
||||
JSScope globalScope = scope;
|
||||
|
||||
|
||||
void enterNewScope(JSObject newScope)
|
||||
void enterNewScope(JSScope newScope)
|
||||
{
|
||||
|
||||
newScope.parent = scope;
|
||||
scope = newScope;
|
||||
}
|
||||
|
||||
void leaveScope()
|
||||
{
|
||||
scope = scope.parent;
|
||||
}
|
||||
|
||||
String print()
|
||||
|
||||
Reference in New Issue
Block a user