зеркало из https://github.com/mozilla/pjs.git
In setAttributes(int,...) mask out unused attributes bits in the same as setAttributes(String,...) does
This commit is contained in:
Родитель
c8c8028335
Коммит
4aafc80db4
|
@ -467,6 +467,8 @@ public abstract class ScriptableObject implements Scriptable, Serializable,
|
|||
int attributes)
|
||||
throws PropertyException
|
||||
{
|
||||
final int mask = READONLY | DONTENUM | PERMANENT;
|
||||
attributes &= mask; // mask out unused bits
|
||||
Slot slot = getSlot(null, index, false);
|
||||
if (slot == null) {
|
||||
throw PropertyException.withMessage0("msg.prop.not.found");
|
||||
|
|
Загрузка…
Ссылка в новой задаче