Skip to content

Commit 8364843

Browse files
committed
fixup!
1 parent 44490c5 commit 8364843

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/internal/util/inspect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ function getStackFrames(ctx, err, stack) {
14671467
if (frames.length > 10) {
14681468
const ranges = getDuplicateErrorFrameRanges(frames);
14691469

1470-
for (let i = 0; i < ranges.length; i += 3) {
1470+
for (let i = ranges.length - 3; i >= 0; i -= 3) {
14711471
const offset = ranges[i];
14721472
const length = ranges[i + 1];
14731473
const duplicateRanges = ranges[i + 2];

0 commit comments

Comments
 (0)