From 84e0eb7748d5af002922469d2cd19f00e9888712 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 18 Jun 2002 10:26:24 +0000 Subject: [PATCH] Create a constructor for the user prototype so it's possible to create user object usnig "new user()". --- src/helma/scripting/fesi/FesiEvaluator.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/helma/scripting/fesi/FesiEvaluator.java b/src/helma/scripting/fesi/FesiEvaluator.java index f1a5b974..fffc704a 100644 --- a/src/helma/scripting/fesi/FesiEvaluator.java +++ b/src/helma/scripting/fesi/FesiEvaluator.java @@ -154,9 +154,8 @@ public final class FesiEvaluator implements ScriptingEngine { // 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)) { - if (!"root".equalsIgnoreCase (name) && !"user".equalsIgnoreCase (name)) + // the actual (scripted) constructor on it. + if (!"global".equalsIgnoreCase (name) && !"root".equalsIgnoreCase (name)) { try { FunctionPrototype fp = (FunctionPrototype) evaluator.getFunctionPrototype(); global.putHiddenProperty (name, new NodeConstructor (name, fp, this)); @@ -206,7 +205,7 @@ public final class FesiEvaluator implements ScriptingEngine { // 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) && !"user".equalsIgnoreCase (name)) { + if (!"global".equalsIgnoreCase (name) && !"root".equalsIgnoreCase (name)) { try { FunctionPrototype fp = (FunctionPrototype) evaluator.getFunctionPrototype(); global.putHiddenProperty (name, new NodeConstructor (name, fp, this));