r9555 - helma/helma/trunk/src/helma/scripting/rhino

[email protected]
Newsgroups gmane.comp.java.helma.cvs
Message-ID <20090330122614.9E7503D0D6@mia>
Author: hannes
Date: 2009-03-30 14:26:14 +0200 (Mon, 30 Mar 2009)
New Revision: 9555

Modified:
   helma/helma/trunk/src/helma/scripting/rhino/GlobalObject.java
Log:
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


Details at http://dev.helma.org/trac/helma/changeset/9555

Modified: helma/helma/trunk/src/helma/scripting/rhino/GlobalObject.java
===================================================================
--- helma/helma/trunk/src/helma/scripting/rhino/GlobalObject.java	2009-03-20 13:41:45 UTC (rev 9554)
+++ helma/helma/trunk/src/helma/scripting/rhino/GlobalObject.java	2009-03-30 12:26:14 UTC (rev 9555)
@@ -18,7 +18,6 @@
 
 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 @@
         // 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);
     }
 
     /**
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.