[X2Go-Commits] [pale-moon] 99/294: Disallow mozmap-typed constants

git-admin at x2go.org git-admin at x2go.org
Sat Apr 27 08:57:55 CEST 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch upstream/28.5.0
in repository pale-moon.

commit 50059d734a07f85214dbb5cbdc2d505f274752a0
Author: JustOff <Off.Just.Off at gmail.com>
Date:   Wed Mar 13 18:52:13 2019 +0200

    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 f668d7d..7d06dbce 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
 

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pale-moon.git


More information about the x2go-commits mailing list