mirror of
https://github.com/servo/servo.git
synced 2025-06-09 09:03:23 +00:00
Use handleOptional for the enumeration conversion.
This commit is contained in:
parent
13e26e0fe0
commit
89d4fac36e
3 changed files with 3 additions and 3 deletions
|
@ -722,7 +722,7 @@ def getJSToNativeConversionTemplate(type, descriptorProvider, failureCode=None,
|
|||
(enum,
|
||||
getEnumValueName(defaultValue.value))))
|
||||
|
||||
return (template, CGGeneric(enum), isOptional, None)
|
||||
return handleOptional(template, CGGeneric(enum), isOptional)
|
||||
|
||||
if type.isCallback():
|
||||
assert not isEnforceRange and not isClamp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue