Fix bug 302501. Constructor property shouldn't be readonly.

git-svn-id: svn://10.0.0.236/trunk@176753 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nboyd%atg.com
2005-07-28 14:12:03 +00:00
parent 30582fcf7e
commit 251c60175c

View File

@@ -407,9 +407,7 @@ public class BaseFunction extends IdScriptableObject implements Function
private void setupDefaultPrototype()
{
NativeObject obj = new NativeObject();
final int attr = ScriptableObject.DONTENUM |
ScriptableObject.READONLY |
ScriptableObject.PERMANENT;
final int attr = ScriptableObject.DONTENUM;
obj.defineProperty("constructor", this, attr);
// put the prototype property into the object now, then in the
// wacky case of a user defining a function Object(), we don't