No bug - Improve error message when declaring an interface both as WebIDL and external in Bindings.conf; r=bz

This commit is contained in:
Ms2ger 2012-10-06 09:23:25 +02:00
Родитель 87e4507ff2
Коммит d67c69ab38
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -567,6 +567,8 @@ DOMInterfaces = {
# These are temporary, until they've been converted to use new DOM bindings
def addExternalIface(iface, nativeType=None, headerFile=None):
if iface in DOMInterfaces:
raise Exception('Interface declared both as WebIDL and External interface')
domInterface = {
'concrete': False
}