We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84fb85a commit efd3b12Copy full SHA for efd3b12
source-map-support.js
@@ -542,7 +542,8 @@ function createPrepareStackTrace(hookState) {
542
543
// Generate position and snippet of original source with pointer
544
function getErrorSource(error) {
545
- var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack);
+ // TODO this is not robust enough
546
+ var match = /\n at [^(]+ \((?:file:\/{0,2})?(.*):(\d+):(\d+)\)/.exec(error.stack);
547
if (match) {
548
var source = match[1];
549
var line = +match[2];
0 commit comments