mirror of
https://github.com/servo/servo.git
synced 2025-07-25 00:00:20 +01:00
refactor(script): make grouping clearer while keeping test-tidy
happy
This commit is contained in:
parent
2e0dd0816f
commit
b6ee398b91
1 changed files with 4 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue