summaryrefslogtreecommitdiffstats
path: root/xpcom/idl-parser/xpidl
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-30 15:02:56 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-30 15:02:56 +0200
commit83e6cb541070f5ac9b31a1b6d146c0992c44c81e (patch)
tree63d1f72e958523060257f7f016388aef8204c57f /xpcom/idl-parser/xpidl
parent966e69291ae8ca1615b7d9a2d4db28b6532564f5 (diff)
downloadUXP-83e6cb541070f5ac9b31a1b6d146c0992c44c81e.tar
UXP-83e6cb541070f5ac9b31a1b6d146c0992c44c81e.tar.gz
UXP-83e6cb541070f5ac9b31a1b6d146c0992c44c81e.tar.lz
UXP-83e6cb541070f5ac9b31a1b6d146c0992c44c81e.tar.xz
UXP-83e6cb541070f5ac9b31a1b6d146c0992c44c81e.zip
Bug 338865 - Scriptable XPIDL iface inheriting from noscript iface should throw error
Diffstat (limited to 'xpcom/idl-parser/xpidl')
-rwxr-xr-xxpcom/idl-parser/xpidl/xpidl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xpcom/idl-parser/xpidl/xpidl.py b/xpcom/idl-parser/xpidl/xpidl.py
index 8b2d8c884..6bb1ad5de 100755
--- a/xpcom/idl-parser/xpidl/xpidl.py
+++ b/xpcom/idl-parser/xpidl/xpidl.py
@@ -529,7 +529,7 @@ class Interface(object):
raise IDLError("interface '%s' inherits from non-interface type '%s'" % (self.name, self.base), self.location)
if self.attributes.scriptable and not realbase.attributes.scriptable:
- print >>sys.stderr, IDLError("interface '%s' is scriptable but derives from non-scriptable '%s'" % (self.name, self.base), self.location, warning=True)
+ raise IDLError("interface '%s' is scriptable but derives from non-scriptable '%s'" % (self.name, self.base), self.location, warning=True)
if self.attributes.scriptable and realbase.attributes.builtinclass and not self.attributes.builtinclass:
raise IDLError("interface '%s' is not builtinclass but derives from builtinclass '%s'" % (self.name, self.base), self.location)