mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 924402. When an object that can only be returned from [NewObject] methods is used in a dictionary, just skip generating a ToObject for that dictionary. r=peterv
This commit is contained in:
parent
90d9177654
commit
70192ce8ff
@ -8460,7 +8460,13 @@ if (""",
|
||||
|
||||
methods.append(self.initMethod())
|
||||
methods.append(self.initFromJSONMethod())
|
||||
methods.append(self.toObjectMethod())
|
||||
try:
|
||||
methods.append(self.toObjectMethod())
|
||||
except MethodNotCreatorError:
|
||||
# If we can't have a ToObject() because one of our members can only
|
||||
# be returned from [NewObject] methods, then just skip generating
|
||||
# ToObject().
|
||||
pass
|
||||
methods.append(self.traceDictionaryMethod())
|
||||
|
||||
if CGDictionary.isDictionaryCopyConstructible(d):
|
||||
|
Loading…
Reference in New Issue
Block a user