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:
parent
ed8637f449
commit
d26410abc7
1 changed files with 1 additions and 3 deletions
|
@ -18,7 +18,6 @@ package helma.scripting.rhino;
|
||||||
|
|
||||||
import helma.scripting.rhino.extensions.*;
|
import helma.scripting.rhino.extensions.*;
|
||||||
import helma.framework.core.*;
|
import helma.framework.core.*;
|
||||||
import helma.framework.ResponseTrans;
|
|
||||||
import helma.objectmodel.db.*;
|
import helma.objectmodel.db.*;
|
||||||
import helma.util.HtmlEncoder;
|
import helma.util.HtmlEncoder;
|
||||||
import helma.util.MimePart;
|
import helma.util.MimePart;
|
||||||
|
@ -84,8 +83,7 @@ public class GlobalObject extends ImporterTopLevel implements PropertyRecorder {
|
||||||
// Define dontEnum() on Object prototype
|
// Define dontEnum() on Object prototype
|
||||||
String[] objFuncs = { "dontEnum" };
|
String[] objFuncs = { "dontEnum" };
|
||||||
ScriptableObject objproto = (ScriptableObject) getObjectPrototype(this);
|
ScriptableObject objproto = (ScriptableObject) getObjectPrototype(this);
|
||||||
objproto.defineFunctionProperties(objFuncs, GlobalObject.class,
|
objproto.defineFunctionProperties(objFuncs, GlobalObject.class, DONTENUM | PERMANENT);
|
||||||
DONTENUM | READONLY | PERMANENT);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue