mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix invalid returned value for dictionary types
This commit is contained in:
parent
81282ba82a
commit
14a22953dd
2 changed files with 3 additions and 2 deletions
|
@ -1016,8 +1016,8 @@ def getJSToNativeConversionInfo(type, descriptorProvider, failureCode=None,
|
|||
declType = CGGeneric(typeName)
|
||||
template = ("match %s::new(cx, ${val}) {\n"
|
||||
" Ok(dictionary) => dictionary,\n"
|
||||
" Err(_) => return false,\n"
|
||||
"}" % typeName)
|
||||
" Err(_) => { %s },\n"
|
||||
"}" % (typeName, exceptionCode))
|
||||
|
||||
return handleOptional(template, declType, handleDefaultNull("%s::empty(cx)" % typeName))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue