Bug 965898 - Allow both gettable and settable attributes in Filter(). r=gabor

This commit is contained in:
Bobby Holley 2014-07-30 12:23:03 -07:00
parent 9352980643
commit 188b950181

View File

@ -34,7 +34,7 @@ Filter(JSContext *cx, HandleObject wrapper, AutoIdVector &props)
RootedId id(cx);
for (size_t n = 0; n < props.length(); ++n) {
id = props[n];
if (Policy::check(cx, wrapper, id, Wrapper::GET))
if (Policy::check(cx, wrapper, id, Wrapper::GET) || Policy::check(cx, wrapper, id, Wrapper::SET))
props[w++].set(id);
else if (JS_IsExceptionPending(cx))
return false;