Skip to content

Commit 6acd36e

Browse files
author
Eric Wendelin
committed
Fix handling of port numbers in URLs for Opera 11.
1 parent 6ed0ba7 commit 6acd36e

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

dist/error-stack-parser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,13 @@
204204
return !!line.match(FIREFOX_SAFARI_STACK_REGEXP);
205205
}.bind(this)).map(function (line) {
206206
var tokens = line.split('@');
207-
var location = tokens.pop().split(':');
207+
var locationParts = this.extractLocation(tokens.pop());
208208
var functionCall = (tokens.shift() || '');
209209
var functionName = functionCall.replace(/<anonymous function: (\w+)>/, '$1').replace(/\([^\)]*\)/, '') || undefined;
210210
var argsRaw = functionCall.replace(/^[^\(]+\(([^\)]*)\)$/, '$1') || undefined;
211211
var args = (argsRaw === undefined || argsRaw === '[arguments not available]') ? undefined : argsRaw.split(',');
212-
return new StackFrame(functionName, args, location[0] + ':' + location[1], location[2], location[3]);
213-
});
212+
return new StackFrame(functionName, args, locationParts[0], locationParts[1], locationParts[2]);
213+
}.bind(this));
214214
}
215215
};
216216
}));

dist/error-stack-parser.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)