diff --git a/js/rhino/src/org/mozilla/javascript/BaseFunction.java b/js/rhino/src/org/mozilla/javascript/BaseFunction.java index 300af38d2c8a..4683a8c6ba10 100644 --- a/js/rhino/src/org/mozilla/javascript/BaseFunction.java +++ b/js/rhino/src/org/mozilla/javascript/BaseFunction.java @@ -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