Bug 1357109 - Allow both .filename and .fileName property when dumping an exception in asyncTestUtils.js. r=jorgk
This commit is contained in:
Родитель
c301b19079
Коммит
1054b0d995
|
@ -173,9 +173,10 @@ function _async_driver() {
|
|||
let asyncStack = [];
|
||||
dump("*******************************************\n");
|
||||
dump("Generator explosion!\n");
|
||||
dump("Unhappiness at: " + ex.filename + ":" + ex.lineNumber + "\n");
|
||||
dump("Unhappiness at: " + (ex.fileName || ex.filename) + ":" + ex.lineNumber + "\n");
|
||||
dump("Because: " + ex + "\n");
|
||||
dump("Stack:\n " + ex.stack.replace(/\n/g, "\n ") + "\n");
|
||||
if (ex.stack)
|
||||
dump("Stack:\n " + ex.stack.replace(/\n/g, "\n ") + "\n");
|
||||
dump("**** Async Generator Stack source functions:\n");
|
||||
for (let i = asyncGeneratorStack.length - 1; i >= 0; i--) {
|
||||
dump(" " + asyncGeneratorStack[i][1] + "\n");
|
||||
|
|
|
@ -478,7 +478,7 @@ function _normalize_for_json(aObj, aDepthAllowed, aJsonMeNotNeeded) {
|
|||
return {
|
||||
type: "error",
|
||||
message: "nsIException: " + aObj.name,
|
||||
fileName: aObj.filename,
|
||||
fileName: aObj.filename, // intentionally lower-case
|
||||
lineNumber: aObj.lineNumber,
|
||||
name: aObj.name,
|
||||
result: aObj.result,
|
||||
|
|
Загрузка…
Ссылка в новой задаче