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

This commit is contained in:
Bobby Holley 2014-07-29 21:35:32 -07:00
parent 11fa02bd53
commit 5955f7bd14

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;