Bug 856338 - Using sequence<foo>? as an argument type crashes when passing non-null value, p=Ms2ger+smaug,r=bz

--HG--
extra : rebase_source : fb54e52db051584333c9430b0b000ee052e5b2d7
This commit is contained in:
Olli Pettay 2013-04-23 02:49:49 +03:00
parent 41a03d9147
commit bab076c604

View File

@ -2508,7 +2508,7 @@ def getJSToNativeConversionTemplate(type, descriptorProvider, failureCode=None,
sequenceType = typeName.define()
if nullable:
typeName = CGTemplatedType("Nullable", typeName)
arrayRef = "${declName}.Value()"
arrayRef = "const_cast<Nullable<" + sequenceType + " >& >(${declName}).SetValue()"
else:
arrayRef = "${declName}"
# If we're optional or a member, the const will come from the Optional