diff options
author | JustOff <Off.Just.Off@gmail.com> | 2019-03-13 18:52:13 +0200 |
---|---|---|
committer | JustOff <Off.Just.Off@gmail.com> | 2019-03-13 18:52:13 +0200 |
commit | 50059d734a07f85214dbb5cbdc2d505f274752a0 (patch) | |
tree | 5e8f51d97128ec8fee58b0e1976586d8b33b702d /dom/bindings/parser | |
parent | cfcba2402e625f94cf08acd3b6410d7513ba0b2e (diff) | |
download | uxp-50059d734a07f85214dbb5cbdc2d505f274752a0.tar.gz |
Disallow mozmap-typed constants
Diffstat (limited to 'dom/bindings/parser')
-rw-r--r-- | dom/bindings/parser/WebIDL.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/bindings/parser/WebIDL.py b/dom/bindings/parser/WebIDL.py index f668d7d622..7d06dbcecf 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 |