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

This commit is contained in:
nboyd%atg.com 2005-07-28 14:12:03 +00:00
Родитель d5cf7fa673
Коммит 882189d2fd
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -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