Use handleOptional for the enumeration conversion.

This commit is contained in:
Ms2ger 2014-04-26 18:32:45 +02:00
parent 13e26e0fe0
commit 89d4fac36e
3 changed files with 3 additions and 3 deletions

View file

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