Bug 961208 part 1. When doing a DoNewResolve for Xrays, pass the Xray, not the underlying object, to DoNewResolve, in case people want to do permissions checks on the object. r=bholley

This commit is contained in:
Boris Zbarsky 2014-01-21 22:08:49 -05:00
parent 4a61f7bb0c
commit 376113e4f2

View File

@ -7723,7 +7723,7 @@ class CGResolveOwnPropertyViaNewresolve(CGAbstractBindingMethod):
def generate_code(self):
return CGIndenter(CGGeneric(
"JS::Rooted<JS::Value> value(cx);\n"
"if (!self->DoNewResolve(cx, obj, id, &value)) {\n"
"if (!self->DoNewResolve(cx, wrapper, id, &value)) {\n"
" return false;\n"
"}\n"
"if (!value.isUndefined()) {\n"