refactor(script): make grouping clearer while keeping test-tidy happy

This commit is contained in:
yvt 2021-07-27 22:26:28 +09:00
parent 2e0dd0816f
commit b6ee398b91

View file

@ -1936,9 +1936,10 @@ class AttrDefiner(PropertyDefiner):
def setter(attr):
attr = attr['attr']
if ((attr.readonly and not attr.getExtendedAttribute("PutForwards")
and not attr.getExtendedAttribute("Replaceable"))
or (self.crossorigin and not attr.getExtendedAttribute("CrossOriginReadable"))):
if ((self.crossorigin and not attr.getExtendedAttribute("CrossOriginReadable"))
or (attr.readonly
and not attr.getExtendedAttribute("PutForwards")
and not attr.getExtendedAttribute("Replaceable"))):
return "JSNativeWrapper { op: None, info: 0 as *const JSJitInfo }"
if self.static: