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:
rogerl%netscape.com
1999-06-15 00:57:05 +00:00
parent 26c8590a2b
commit b5540991c3
10 changed files with 111 additions and 23 deletions

View File

@@ -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()