From ebfbdae0010e131899487ceaff4545051c7c8267 Mon Sep 17 00:00:00 2001 From: hns Date: Fri, 18 Aug 2006 20:12:09 +0000 Subject: [PATCH] * Use getFunctionName(), functionName field isn't accessible anymore. --- src/helma/scripting/rhino/HopObjectCtor.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/helma/scripting/rhino/HopObjectCtor.java b/src/helma/scripting/rhino/HopObjectCtor.java index d0c9a7d0..a94f7fd3 100644 --- a/src/helma/scripting/rhino/HopObjectCtor.java +++ b/src/helma/scripting/rhino/HopObjectCtor.java @@ -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); }