mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 965898 - Allow both gettable and settable attributes in Filter(). r=gabor
This commit is contained in:
parent
9352980643
commit
188b950181
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user