Source code
Revision control
Copy as Markdown
Other Tools
/* Any copyright is dedicated to the Public Domain.
"use strict";
Services.scriptloader.loadSubScript(
this
);
const {
SourceMapLoader,
} = require("resource://devtools/client/shared/source-map-loader/index.js");
const gSourceMapLoader = new SourceMapLoader();
function fetchFixtureSourceMap(name) {
gSourceMapLoader.clearSourceMaps();
const source = {
id: `${name}.js`,
sourceMapURL: `${name}.js.map`,
sourceMapBaseURL: `${URL_ROOT_SSL}fixtures/${name}.js`,
};
return gSourceMapLoader.getOriginalURLs(source);
}