Do not create a constructor for HopObject - this is done by defineClass().
This commit is contained in:
parent
352f9c7fec
commit
9e5ab59493
1 changed files with 3 additions and 1 deletions
|
@ -176,7 +176,9 @@ public final class RhinoCore {
|
|||
// Register a constructor for all types except global.
|
||||
// This will first create a new prototyped hopobject and then calls
|
||||
// the actual (scripted) constructor on it.
|
||||
if (!"global".equalsIgnoreCase(name) && !"root".equalsIgnoreCase(name)) {
|
||||
if (!"global".equalsIgnoreCase(name) &&
|
||||
!"root".equalsIgnoreCase(name) &&
|
||||
!"hopobject".equalsIgnoreCase(name)) {
|
||||
try {
|
||||
installConstructor(name, op);
|
||||
} catch (Exception ignore) {
|
||||
|
|
Loading…
Add table
Reference in a new issue