зеркало из https://github.com/mozilla/gecko-dev.git
Bug 978709 - 2.d/6: don't throw in _deliverDataCallCallback loop. r=hsinyi
This commit is contained in:
Родитель
b71f31cdfd
Коммит
cf68aca1e4
|
@ -1109,11 +1109,11 @@ DataConnectionHandler.prototype = {
|
|||
if (this._dataCallbacks.indexOf(callback) == -1) {
|
||||
continue;
|
||||
}
|
||||
let handler = callback[name];
|
||||
if (typeof handler !== "function") {
|
||||
throw new Error("No handler for " + name);
|
||||
}
|
||||
try {
|
||||
let handler = callback[name];
|
||||
if (typeof handler !== "function") {
|
||||
throw new Error("No handler for " + name);
|
||||
}
|
||||
handler.apply(callback, args);
|
||||
} catch (e) {
|
||||
if (DEBUG) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче