code: function symbolicateHeapCaptureFunctions(capture, onFailure, onSuccess) {
    getSourceMapsForCapture(capture, onFailure, (sourcemaps) => {
      for (const id in capture.refs) {
        const ref = capture.refs[id];
        if (ref.type === 'ScriptExecutable' ||
            ref.type === 'EvalExecutable' ||
            ref.type === 'ProgramExecutable' ||
            ref.type === 'FunctionExecutable') {
          const sourcemap = sourcemaps.get(ref.value.url);
          if (sourcemap) {
            const original = sourcemap.originalPositionFor({
              line: ref.value.line,
              column: ref.value.col,
            });
            if (original.name) {
              ref.value.name = original.name;
            } else if (!ref.value.name) {
              ref.value.name = path.posix.basename(original.source) + ':' + original.line;
            }
            ref.value.url = original.source;
            ref.value.line = original.line;
            ref.value.col = original.column;
          }
        }
      }
      onSuccess(capture);
    });
  }
docs: capture: capture object onSuccess: function (capture object) onFailure: function (string)