mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 08:07:30 +09:00
Bug 338865 - Scriptable XPIDL iface inheriting from noscript iface should throw error
This commit is contained in:
parent
5eca87831c
commit
5975ed3076
1 changed files with 1 additions and 1 deletions
|
|
@ -529,7 +529,7 @@ class Interface(object):
|
||||||
raise IDLError("interface '%s' inherits from non-interface type '%s'" % (self.name, self.base), self.location)
|
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:
|
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:
|
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)
|
raise IDLError("interface '%s' is not builtinclass but derives from builtinclass '%s'" % (self.name, self.base), self.location)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue