mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Disallow mozmap-typed constants
This commit is contained in:
parent
bc82c959ec
commit
740f68378f
1 changed files with 3 additions and 0 deletions
|
|
@ -3843,6 +3843,9 @@ class IDLConst(IDLInterfaceMember):
|
|||
if type.isDictionary():
|
||||
raise WebIDLError("A constant cannot be of a dictionary type",
|
||||
[self.location])
|
||||
if type.isMozMap():
|
||||
raise WebIDLError("A constant cannot be of a MozMap type",
|
||||
[self.location])
|
||||
self.type = type
|
||||
self.value = value
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue