зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b6f51171e6
Коммит
0ba15d837e
|
@ -2508,7 +2508,7 @@ def getJSToNativeConversionTemplate(type, descriptorProvider, failureCode=None,
|
||||||
sequenceType = typeName.define()
|
sequenceType = typeName.define()
|
||||||
if nullable:
|
if nullable:
|
||||||
typeName = CGTemplatedType("Nullable", typeName)
|
typeName = CGTemplatedType("Nullable", typeName)
|
||||||
arrayRef = "${declName}.Value()"
|
arrayRef = "const_cast<Nullable<" + sequenceType + " >& >(${declName}).SetValue()"
|
||||||
else:
|
else:
|
||||||
arrayRef = "${declName}"
|
arrayRef = "${declName}"
|
||||||
# If we're optional or a member, the const will come from the Optional
|
# If we're optional or a member, the const will come from the Optional
|
||||||
|
|
Загрузка…
Ссылка в новой задаче