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
This commit is contained in:
hns 2009-03-30 12:26:14 +00:00
parent ed8637f449
commit d26410abc7

View file

@ -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);
}
/**