mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 1141858 - Fix error message for unexpected extended attribute on dictionary members. r=bzbarsky
This commit is contained in:
parent
6b6684aace
commit
fcd38bba49
@ -3540,7 +3540,9 @@ class IDLArgument(IDLObjectWithIdentifier):
|
||||
elif identifier == "TreatNonCallableAsNull":
|
||||
self._allowTreatNonCallableAsNull = True
|
||||
else:
|
||||
raise WebIDLError("Unhandled extended attribute on an argument",
|
||||
raise WebIDLError("Unhandled extended attribute on %s" %
|
||||
("a dictionary member" if self.dictionaryMember else
|
||||
"an argument"),
|
||||
[attribute.location])
|
||||
|
||||
def isComplete(self):
|
||||
|
Loading…
Reference in New Issue
Block a user