Skip to content

Commit e6aa863

Browse files
author
Ives van Hoorne
committed
Fix error line showing
1 parent c42104d commit e6aa863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function buildErrorMessage(e) {
2323

2424
// Chrome
2525
} else if (e.stack) {
26-
const matched = e.stack.match(/(\d+):(\d+)/);
26+
const matched = e.stack.match(/<anonymous>:(\d+):(\d+)/);
2727
if (matched) {
2828
line = matched[1];
2929
column = matched[2];

0 commit comments

Comments
 (0)