* 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 |
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue