Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sourcemapped-stacktrace.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function(source_map_consumer) {
};

var absUrlRegex = new RegExp('^(?:[a-z]+:)?//', 'i');

var absUrlWithoutDomainAndProtocol = new RegExp('^/');
Fetcher.prototype.onScriptLoad = function(e, uri) {
if (e.target.readyState !== 4) {
return;
Expand All @@ -127,7 +127,7 @@ function(source_map_consumer) {
this.mapForUri[uri] = atob(embeddedSourceMap[2]);
this.done(this.mapForUri);
} else {
if (!absUrlRegex.test(mapUri)) {
if (!absUrlRegex.test(mapUri) && !absUrlWithoutDomainAndProtocol.test(mapUri)) {
// relative url; according to sourcemaps spec is 'source origin'
var origin;
var lastSlash = uri.lastIndexOf('/');
Expand Down