зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug 302501. Constructor property shouldn't be readonly.
This commit is contained in:
Родитель
d5cf7fa673
Коммит
882189d2fd
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче