code: function getOriginalPositionDetailsFor(
    lineNumber,
    columnNumber,
    moduleIds,
    context,
  ) {
    var moduleLineOffset = 0;
    var metadata = context.segments[moduleIds.segmentId];
    const {localId} = moduleIds;
    if (localId != null) {
      const {moduleOffsets} = metadata;
      if (!moduleOffsets) {
        throw new Error(
          'Module ID given for a source map that does not have ' +
            'an x_facebook_offsets field',
        );
      }
      if (moduleOffsets[localId] == null) {
        throw new Error('Unknown module ID: ' + localId);
      }
      moduleLineOffset = moduleOffsets[localId];
    }
    const original = metadata.consumer.originalPositionFor({
      line: Number(lineNumber) + moduleLineOffset,
      column: Number(columnNumber),
    });
    if (metadata.sourceFunctionsConsumer) {
      original.functionName =
        metadata.sourceFunctionsConsumer.functionNameFor(original) || null;
    } else {
      original.functionName = null;
    }
    return original;
  }
docs: /*
  An internal helper function similar to getOriginalPositionFor. This one
  returns both `name` and `functionName` fields so callers can distinguish the
  source of the name.