Skip to content

Commit b25135f

Browse files
committed
fix(cli/verify): properly handle SourceArrayLocation
1 parent 73864c4 commit b25135f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/commands/verify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ export async function main(
7575
{ text: white().bold("source location"), width: 30, align: "right" }
7676
);
7777
for (const [depName, infos] of Object.entries(deps)) {
78-
const { start, end } = infos.location;
79-
const position = `[${start.line}:${start.column}] - [${end.line}:${end.column}]`;
78+
const [start, end] = infos.location;
79+
const position = `[${start[0]}:${start[1]}] - [${end[0]}:${end[1]}]`;
8080

8181
ui.div(
8282
{ text: depName, width: 30 },

0 commit comments

Comments
 (0)