mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 807034 - Fix WebIDL codegen for static readonly attributes. r=bz
This commit is contained in:
parent
824b628266
commit
4b7833d1f9
@ -1196,12 +1196,12 @@ class AttrDefiner(PropertyDefiner):
|
||||
return "{ (JSPropertyOp)%s, %s }" % (accessor, jitinfo)
|
||||
|
||||
def setter(attr):
|
||||
if attr.readonly and attr.getExtendedAttribute("PutForwards") is None:
|
||||
return "JSOP_NULLWRAPPER"
|
||||
if self.static:
|
||||
accessor = 'set_' + attr.identifier.name
|
||||
jitinfo = "nullptr"
|
||||
else:
|
||||
if attr.readonly and attr.getExtendedAttribute("PutForwards") is None:
|
||||
return "JSOP_NULLWRAPPER"
|
||||
accessor = ("genericLenientSetter" if attr.hasLenientThis()
|
||||
else "genericSetter")
|
||||
jitinfo = "&%s_setterinfo" % attr.identifier.name
|
||||
@ -6149,6 +6149,7 @@ class CGBindingRoot(CGThing):
|
||||
'mozilla/dom/Nullable.h',
|
||||
'PrimitiveConversions.h',
|
||||
'XPCQuickStubs.h',
|
||||
'XPCWrapper.h',
|
||||
'nsDOMQS.h',
|
||||
'AccessCheck.h',
|
||||
'WorkerPrivate.h',
|
||||
|
Loading…
Reference in New Issue
Block a user