Skip to content

Unnecessary error in extractSource due to not checking for null #2744

@erights

Description

@erights

The line at

if (callSite.file === normalizedFile) {

should be changed to

if (callsite && callSite.file === normalizedFile) {

since the previous line

const callSite = stackUtils.parseLine(line);

may, and sometimes does, initialize callSite to null. Once this is fixed, if the catch at

} catch {}

was there only because of this one error, then this do-nothing catch should be removed.

Metadata

Metadata

Assignees

Labels

bugcurrent functionality does not work as desiredhelp wanted

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions