mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-26 21:50:42 -10:00
18 lines
352 B
Java
18 lines
352 B
Java
class FunctionNode extends ExpressionNode {
|
|
|
|
FunctionNode(JSIdentifier aName, ControlNodeGroup aBody)
|
|
{
|
|
fn = new NativeFunction(aBody.getHead());
|
|
name = aName;
|
|
}
|
|
|
|
JSValue eval(Environment theEnv)
|
|
{
|
|
theEnv.scope.putProp(theEnv, name, fn);
|
|
return fn;
|
|
}
|
|
|
|
JSString name;
|
|
NativeFunction fn;
|
|
|
|
} |