Bug 819611 - Dont attach scall-StrictPropertyOp-setter stubs for SetProps on non-writable properties. r=dvander

This commit is contained in:
Kannan Vijayan 2012-12-10 15:48:54 -05:00
parent 3540cbded9
commit 852b67981b

View File

@ -1280,6 +1280,9 @@ IsPropertySetterCallInlineable(JSContext *cx, HandleObject obj, HandleObject hol
if (shape->hasDefaultSetter())
return false;
if (!shape->writable())
return false;
// We only handle propertyOps for now, so fail if we have SetterValue
// (which implies JSNative setter).
if (shape->hasSetterValue())