Function calling begun.

This commit is contained in:
rogerl@netscape.com
1999-06-11 00:21:26 +00:00
parent 450b14564a
commit e802d8750e
8 changed files with 104 additions and 13 deletions
+20
View File
@@ -0,0 +1,20 @@
class NativeFunction extends JSObject {
NativeFunction(ControlNode aBody)
{
super("Function");
body = aBody;
}
JSValue call(Environment theEnv, JSValue rV)
{
ControlNode c = body;
while (c != null) c = c.eval(theEnv);
return theEnv.resultValue;
}
ControlNode body;
}