mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fixed codegen error regarding Uint8ClampedArray
This commit is contained in:
parent
fb5c1bef6f
commit
3036c8d21d
3 changed files with 5 additions and 4 deletions
|
@ -4020,8 +4020,7 @@ class CGInterfaceTrait(CGThing):
|
|||
elif m.isAttr() and not m.isStatic():
|
||||
name = CGSpecializedGetter.makeNativeName(descriptor, m)
|
||||
infallible = 'infallible' in descriptor.getExtendedAttributes(m, getter=True)
|
||||
needCx = typeNeedsCx(m.type)
|
||||
yield name, attribute_arguments(needCx), return_type(descriptor, m.type, infallible)
|
||||
yield name, attribute_arguments(typeNeedsCx(m.type, True)), return_type(descriptor, m.type, infallible)
|
||||
|
||||
if not m.readonly:
|
||||
name = CGSpecializedSetter.makeNativeName(descriptor, m)
|
||||
|
@ -4030,7 +4029,7 @@ class CGInterfaceTrait(CGThing):
|
|||
rettype = "()"
|
||||
else:
|
||||
rettype = "ErrorResult"
|
||||
yield name, attribute_arguments(needCx, m.type), rettype
|
||||
yield name, attribute_arguments(typeNeedsCx(m.type, False), m.type), rettype
|
||||
|
||||
if descriptor.proxy:
|
||||
for name, operation in descriptor.operations.iteritems():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue