mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 13:48:23 +02:00
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:
parent
8a09288919
commit
10353690c9
1 changed files with 4 additions and 4 deletions
|
|
@ -184,8 +184,8 @@ add_task(async function() {
|
||||||
let initiator = "";
|
let initiator = "";
|
||||||
let lineNumber = "";
|
let lineNumber = "";
|
||||||
if (lastFrameExists) {
|
if (lastFrameExists) {
|
||||||
const { filename, line: _lineNumber } = r.stack[0];
|
const { file, line: _lineNumber } = r.stack[0];
|
||||||
initiator = getUrlBaseName(filename);
|
initiator = getUrlBaseName(file);
|
||||||
lineNumber = ":" + _lineNumber;
|
lineNumber = ":" + _lineNumber;
|
||||||
}
|
}
|
||||||
const causeStr = lastFrameExists ? " (" + r.causeType + ")" : r.causeType;
|
const causeStr = lastFrameExists ? " (" + r.causeType + ")" : r.causeType;
|
||||||
|
|
@ -197,9 +197,9 @@ add_task(async function() {
|
||||||
const request = getSortedRequests(store.getState())[i];
|
const request = getSortedRequests(store.getState())[i];
|
||||||
let initiator;
|
let initiator;
|
||||||
if (request.cause.stacktraceAvailable) {
|
if (request.cause.stacktraceAvailable) {
|
||||||
const { fileName, lineNumber } = request.cause.lastFrame;
|
const { filename, lineNumber } = request.cause.lastFrame;
|
||||||
initiator =
|
initiator =
|
||||||
getUrlBaseName(fileName) +
|
getUrlBaseName(filename) +
|
||||||
":" +
|
":" +
|
||||||
lineNumber +
|
lineNumber +
|
||||||
" (" +
|
" (" +
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue