From d26410abc766b3a9e22ee705cd8a9ee44e4d26d6 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 30 Mar 2009 12:26:14 +0000 Subject: [PATCH] Don't define Object.prototype.dontEnum as READONLY, reflecting the status of other predefined functions and properties - see bugs #643 and #602. http://dev.helma.org/bugs/show_bug.cgi?id=643 http://dev.helma.org/bugs/show_bug.cgi?id=602 --- src/helma/scripting/rhino/GlobalObject.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/helma/scripting/rhino/GlobalObject.java b/src/helma/scripting/rhino/GlobalObject.java index 0810077e..c39e77a4 100644 --- a/src/helma/scripting/rhino/GlobalObject.java +++ b/src/helma/scripting/rhino/GlobalObject.java @@ -18,7 +18,6 @@ package helma.scripting.rhino; import helma.scripting.rhino.extensions.*; import helma.framework.core.*; -import helma.framework.ResponseTrans; import helma.objectmodel.db.*; import helma.util.HtmlEncoder; import helma.util.MimePart; @@ -84,8 +83,7 @@ public class GlobalObject extends ImporterTopLevel implements PropertyRecorder { // Define dontEnum() on Object prototype String[] objFuncs = { "dontEnum" }; ScriptableObject objproto = (ScriptableObject) getObjectPrototype(this); - objproto.defineFunctionProperties(objFuncs, GlobalObject.class, - DONTENUM | READONLY | PERMANENT); + objproto.defineFunctionProperties(objFuncs, GlobalObject.class, DONTENUM | PERMANENT); } /**