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 | 56cf19f5bd6240dacbff801d15f5faff33060b7d (patch) | |
tree | 5e8f51d97128ec8fee58b0e1976586d8b33b702d /dom/bindings/parser/WebIDL.py | |
parent | 01c2fb3b84f0ecb2682f1c961cb025080f14ab52 (diff) | |
download | aura-central-56cf19f5bd6240dacbff801d15f5faff33060b7d.tar.gz |
Disallow mozmap-typed constants
Diffstat (limited to 'dom/bindings/parser/WebIDL.py')
-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 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 |