mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 767929 - Use Maybe instead of Optional for the holder object in new DOM binding code. r=bzbarsky
This commit is contained in:
parent
05015ca6da
commit
27a234bfc8
@ -3553,8 +3553,8 @@ def instantiateJSToNativeConversion(info, replacements, argcAndIndex=None):
|
||||
originalHolderName = replacements["holderName"]
|
||||
if holderType is not None:
|
||||
if dealWithOptional:
|
||||
replacements["holderName"] = "%s.Value()" % originalHolderName
|
||||
holderType = CGTemplatedType("Optional", holderType)
|
||||
replacements["holderName"] = "%s.ref()" % originalHolderName
|
||||
holderType = CGTemplatedType("Maybe", holderType)
|
||||
holderCtorArgs = None
|
||||
elif holderArgs is not None:
|
||||
holderCtorArgs = CGWrapper(holderArgs, pre="(", post=")")
|
||||
@ -3592,7 +3592,7 @@ def instantiateJSToNativeConversion(info, replacements, argcAndIndex=None):
|
||||
declArgs.define() if declArgs else "")))
|
||||
if holderType is not None:
|
||||
holderConstruct = CGIndenter(
|
||||
CGGeneric("%s.Construct(%s);" %
|
||||
CGGeneric("%s.construct(%s);" %
|
||||
(originalHolderName,
|
||||
holderArgs.define() if holderArgs else "")))
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user