code: function getSourceMapsForCapture(capture, onFailure, onSuccess) {
    const urls = new Set();
    const sourcemaps = new Map();
    for (const id in capture.refs) {
      const ref = capture.refs[id];
      if ((ref.type === 'ScriptExecutable' ||
          ref.type === 'EvalExecutable' ||
          ref.type === 'ProgramExecutable' ||
          ref.type === 'FunctionExecutable') && ref.value.url) {
        urls.add(ref.value.url);
      }
    }
    urls.forEach((url) => {
      getSourceMapForUrl(url, onFailure, (sourcemap) => {
        sourcemaps.set(url, sourcemap);
        urls.delete(url);
        if (urls.size === 0) {
          onSuccess(sourcemaps);
        }
      });
    });
    if (urls.size === 0) {
      console.warn('No source information found in capture');
      onSuccess(sourcemaps);
    }
  }
docs: capture: capture object onSuccess: function (Map of url -> SourceMapConsumer) onFailure: function (string)