From 50059d734a07f85214dbb5cbdc2d505f274752a0 Mon Sep 17 00:00:00 2001 From: JustOff Date: Wed, 13 Mar 2019 18:52:13 +0200 Subject: Disallow mozmap-typed constants --- dom/bindings/parser/WebIDL.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dom/bindings/parser') 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 -- cgit v1.2.3