Skip to content

Commit c42104d

Browse files
author
Ives van Hoorne
committed
Fix line and column finding
1 parent 641b6cb commit c42104d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sandbox/utils/error-message-builder.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export default function buildErrorMessage(e) {
2525
} else if (e.stack) {
2626
const matched = e.stack.match(/(\d+):(\d+)/);
2727
if (matched) {
28-
[line, column] = matched;
28+
line = matched[1];
29+
column = matched[2];
2930
}
3031
}
3132
return {

0 commit comments

Comments
 (0)