* Use getFunctionName(), functionName field isn't accessible anymore.

This commit is contained in:
hns 2006-08-18 20:12:09 +00:00
parent e5033685db
commit ebfbdae001

View file

@ -42,9 +42,7 @@ public class HopObjectCtor extends FunctionObject {
} }
} }
static final int attr = ScriptableObject.DONTENUM | static final int attr = DONTENUM | PERMANENT | READONLY;
ScriptableObject.PERMANENT |
ScriptableObject.READONLY;
/** /**
* Create and install a HopObject constructor. * Create and install a HopObject constructor.
* Part of this is copied from o.m.j.FunctionObject.addAsConstructor(). * Part of this is copied from o.m.j.FunctionObject.addAsConstructor().
@ -115,7 +113,7 @@ public class HopObjectCtor extends FunctionObject {
// trigger prototype compilation on static // trigger prototype compilation on static
// constructor property access // constructor property access
initialized = true; initialized = true;
core.getPrototype(functionName); core.getPrototype(getFunctionName());
} }
return super.get(name, start); return super.get(name, start);
} }