mirror of
https://github.com/servo/servo.git
synced 2025-06-09 17:13:24 +00:00
Use handleOptional for dictionary conversion.
This does not have any effect, as isOptional is always False for dictionaries. This change is made only for consistency.
This commit is contained in:
parent
54d2e8e235
commit
08fce9a321
1 changed files with 1 additions and 1 deletions
|
@ -776,7 +776,7 @@ def getJSToNativeConversionTemplate(type, descriptorProvider, failureCode=None,
|
|||
" Err(_) => return 0,\n"
|
||||
"}" % (typeName, val))
|
||||
|
||||
return (template, declType, False, None)
|
||||
return handleOptional(template, declType, isOptional)
|
||||
|
||||
if type.isVoid():
|
||||
assert not isOptional
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue