mirror of
https://github.com/servo/servo.git
synced 2025-07-30 02:30:21 +01: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"
|
" Err(_) => return 0,\n"
|
||||||
"}" % (typeName, val))
|
"}" % (typeName, val))
|
||||||
|
|
||||||
return (template, declType, False, None)
|
return handleOptional(template, declType, isOptional)
|
||||||
|
|
||||||
if type.isVoid():
|
if type.isVoid():
|
||||||
assert not isOptional
|
assert not isOptional
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue