зеркало из https://github.com/mozilla/gecko-dev.git
Bug 916162 - The location of JS errors caused by frameworker message handlers isn't reported, r=markh.
This commit is contained in:
Родитель
f159378d0d
Коммит
57a17a0973
|
@ -19,7 +19,9 @@ WorkerPort.prototype = {
|
|||
},
|
||||
|
||||
_onerror: function fw_WorkerPort_onerror(err) {
|
||||
throw new Error("Port " + this + " handler failed: " + err);
|
||||
// We throw an object that "derives" from the exception, but with
|
||||
// a more detailed message.
|
||||
throw {message: "Port " + this + " handler failed: " + err.message, __proto__: err};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче