* Use getFunctionName(), functionName field isn't accessible anymore.
This commit is contained in:
parent
e5033685db
commit
ebfbdae001
1 changed files with 2 additions and 4 deletions
|
@ -42,9 +42,7 @@ public class HopObjectCtor extends FunctionObject {
|
|||
}
|
||||
}
|
||||
|
||||
static final int attr = ScriptableObject.DONTENUM |
|
||||
ScriptableObject.PERMANENT |
|
||||
ScriptableObject.READONLY;
|
||||
static final int attr = DONTENUM | PERMANENT | READONLY;
|
||||
/**
|
||||
* Create and install a HopObject constructor.
|
||||
* 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
|
||||
// constructor property access
|
||||
initialized = true;
|
||||
core.getPrototype(functionName);
|
||||
core.getPrototype(getFunctionName());
|
||||
}
|
||||
return super.get(name, start);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue