mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00: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
eff45ee497
commit
38d1832bb2
@ -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