mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
41a03d9147
commit
bab076c604
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user