mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 00:55:37 +00:00
20 lines
368 B
Java
20 lines
368 B
Java
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;
|
|
|
|
} |