Do not create a constructor for HopObject - this is done by defineClass().

This commit is contained in:
hns 2003-06-25 10:46:37 +00:00
parent 352f9c7fec
commit 9e5ab59493

View file

@ -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) {