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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user