Bug 1535135. Annotate static binding methods/getters/setters as MOZ_CAN_RUN_SCRIPT. r=qdot

We do this for non-static ones already; we should do it for static ones too.

Differential Revision: https://phabricator.services.mozilla.com/D23390

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Boris Zbarsky 2019-03-13 20:50:36 +00:00
Родитель 7f7b9d9668
Коммит 870c830c5a
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -8724,7 +8724,8 @@ class CGAbstractStaticBindingMethod(CGAbstractStaticMethod):
"""
def __init__(self, descriptor, name):
CGAbstractStaticMethod.__init__(self, descriptor, name, "bool",
JSNativeArguments())
JSNativeArguments(),
canRunScript=True)
def definition_body(self):
# Make sure that "obj" is in the same compartment as "cx", since we'll