From 740f68378fabb824376afe95aeb63ca047135bd2 Mon Sep 17 00:00:00 2001 From: JustOff Date: Wed, 13 Mar 2019 18:52:13 +0200 Subject: [PATCH] Disallow mozmap-typed constants --- dom/bindings/parser/WebIDL.py | 3 +++ 1 file changed, 3 insertions(+) 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