mirror of
https://github.com/servo/servo
synced 2026-05-03 21:02:19 +02:00
refactor(script): make grouping clearer while keeping test-tidy happy
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user