mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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):
|
def setter(attr):
|
||||||
attr = attr['attr']
|
attr = attr['attr']
|
||||||
|
|
||||||
if ((attr.readonly and not attr.getExtendedAttribute("PutForwards")
|
if ((self.crossorigin and not attr.getExtendedAttribute("CrossOriginReadable"))
|
||||||
and not attr.getExtendedAttribute("Replaceable"))
|
or (attr.readonly
|
||||||
or (self.crossorigin and not attr.getExtendedAttribute("CrossOriginReadable"))):
|
and not attr.getExtendedAttribute("PutForwards")
|
||||||
|
and not attr.getExtendedAttribute("Replaceable"))):
|
||||||
return "JSNativeWrapper { op: None, info: 0 as *const JSJitInfo }"
|
return "JSNativeWrapper { op: None, info: 0 as *const JSJitInfo }"
|
||||||
|
|
||||||
if self.static:
|
if self.static:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue