Support nullable strings in dictionaries.

We copy the string in all cases, so there's no need to handle the isMember
case differently.
This commit is contained in:
Ms2ger 2014-04-18 11:37:56 +02:00
parent b31fdf12ef
commit 5ac5ba2468
2 changed files with 14 additions and 7 deletions

View file

@ -702,13 +702,6 @@ def getJSToNativeConversionTemplate(type, descriptorProvider, failureCode=None,
return handleDefault(conversionCode, default)
if isMember:
# We have to make a copy, because our jsval may well not
# live as long as our string needs to.
declType = CGGeneric("DOMString")
return ("%s\n" % getConversionCode(),
declType, None, isOptional, None)
declType = "DOMString"
initialValue = None
if type.nullable():