зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1628423 - Use the proper property name for filename in stacks. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D70670
This commit is contained in:
Родитель
8a09288919
Коммит
10353690c9
|
@ -184,8 +184,8 @@ add_task(async function() {
|
|||
let initiator = "";
|
||||
let lineNumber = "";
|
||||
if (lastFrameExists) {
|
||||
const { filename, line: _lineNumber } = r.stack[0];
|
||||
initiator = getUrlBaseName(filename);
|
||||
const { file, line: _lineNumber } = r.stack[0];
|
||||
initiator = getUrlBaseName(file);
|
||||
lineNumber = ":" + _lineNumber;
|
||||
}
|
||||
const causeStr = lastFrameExists ? " (" + r.causeType + ")" : r.causeType;
|
||||
|
@ -197,9 +197,9 @@ add_task(async function() {
|
|||
const request = getSortedRequests(store.getState())[i];
|
||||
let initiator;
|
||||
if (request.cause.stacktraceAvailable) {
|
||||
const { fileName, lineNumber } = request.cause.lastFrame;
|
||||
const { filename, lineNumber } = request.cause.lastFrame;
|
||||
initiator =
|
||||
getUrlBaseName(fileName) +
|
||||
getUrlBaseName(filename) +
|
||||
":" +
|
||||
lineNumber +
|
||||
" (" +
|
||||
|
|
Загрузка…
Ссылка в новой задаче