Fix invalid returned value for dictionary types

This commit is contained in:
Guillaume Gomez 2015-12-15 18:05:20 +01:00 committed by ggomez
parent 81282ba82a
commit 14a22953dd
2 changed files with 3 additions and 2 deletions

View file

@ -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))