Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Apr 27, 2022
1 parent 84fb85a commit efd3b12
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 109 deletions.
3 changes: 2 additions & 1 deletion source-map-support.js
Expand Up @@ -542,7 +542,8 @@ function createPrepareStackTrace(hookState) {

// Generate position and snippet of original source with pointer
function getErrorSource(error) {
var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack);
// TODO this is not robust enough
var match = /\n at [^(]+ \((?:file:\/{0,2})?(.*):(\d+):(\d+)\)/.exec(error.stack);
if (match) {
var source = match[1];
var line = +match[2];
Expand Down

0 comments on commit efd3b12

Please sign in to comment.