summaryrefslogtreecommitdiffstats
path: root/dom
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2019-03-13 18:52:13 +0200
committerJustOff <Off.Just.Off@gmail.com>2019-03-13 18:52:13 +0200
commit50059d734a07f85214dbb5cbdc2d505f274752a0 (patch)
tree5e8f51d97128ec8fee58b0e1976586d8b33b702d /dom
parentcfcba2402e625f94cf08acd3b6410d7513ba0b2e (diff)
downloadUXP-50059d734a07f85214dbb5cbdc2d505f274752a0.tar
UXP-50059d734a07f85214dbb5cbdc2d505f274752a0.tar.gz
UXP-50059d734a07f85214dbb5cbdc2d505f274752a0.tar.lz
UXP-50059d734a07f85214dbb5cbdc2d505f274752a0.tar.xz
UXP-50059d734a07f85214dbb5cbdc2d505f274752a0.zip
Disallow mozmap-typed constants
Diffstat (limited to 'dom')
-rw-r--r--dom/bindings/parser/WebIDL.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/bindings/parser/WebIDL.py b/dom/bindings/parser/WebIDL.py
index f668d7d62..7d06dbcec 100644
--- a/dom/bindings/parser/WebIDL.py
+++ b/dom/bindings/parser/WebIDL.py
@@ -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