зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1228841 - Part 0: Remove remaining conditional catch consumers in dom/. r=billm
This commit is contained in:
Родитель
a7c1f3ac2d
Коммит
58c29f374c
|
@ -423,11 +423,12 @@
|
|||
pc.addTransceiver("foo");
|
||||
ok(false, 'addTransceiver("foo") throws');
|
||||
}
|
||||
catch (e if e instanceof TypeError) {
|
||||
ok(true, 'addTransceiver("foo") throws a TypeError');
|
||||
}
|
||||
catch (e) {
|
||||
ok(false, 'addTransceiver("foo") throws a TypeError');
|
||||
if (e instanceof TypeError) {
|
||||
ok(true, 'addTransceiver("foo") throws a TypeError');
|
||||
} else {
|
||||
ok(false, 'addTransceiver("foo") throws a TypeError');
|
||||
}
|
||||
}
|
||||
|
||||
hasProps(pc.getTransceivers(), []);
|
||||
|
|
Загрузка…
Ссылка в новой задаче