зеркало из https://github.com/mozilla/pjs.git
Bug 731093 - Make head.js code should just look for just |e.filename| so that a non-object exception is logged when thrown from a test. r=jmaher
This commit is contained in:
Родитель
daa208b896
Коммит
17e82f296a
|
@ -335,9 +335,9 @@ function _execute_test() {
|
|||
// do_check failure though.
|
||||
if (!_quit || e != Components.results.NS_ERROR_ABORT) {
|
||||
msg = "TEST-UNEXPECTED-FAIL | ";
|
||||
if ('fileName' in e) {
|
||||
if (e.fileName) {
|
||||
msg += e.fileName;
|
||||
if ('lineNumber' in e) {
|
||||
if (e.lineNumber) {
|
||||
msg += ":" + e.lineNumber;
|
||||
}
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче