Bug 338865 - Scriptable XPIDL iface inheriting from noscript iface should throw error. r=froydnj

MozReview-Commit-ID: H6sF4Poz2V0

--HG--
extra : rebase_source : fdbd62049d96e89f0182f750da0dd52ad60eb717
This commit is contained in:
Andrew McCreight 2017-09-12 15:03:14 -07:00
Родитель 5c2a2018b7
Коммит f2b46979df
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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)