mozilla / mozilla/source-map

[RFH] smc.eachMapping is not a function

Open
#524 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
3.7k
Forks
370
PR merge metrics
No merged PRs in 30d

Description

I got reported a bug about a package of mine no longer building. It uses source-map during build, in this script, and the method is still documented in https://github.com/mozilla/source-map/blob/master/README.md#sourcemapconsumerprototypeeachmappingcallback-context-order, so I have no idea what is going wrong here.

Help would be appreciated.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the documented SourceMapConsumer.prototype.eachMapping API with its use in the linked scripts/env-patcher.js from the Debian package. Reproduce the reported build failure and inspect the relevant source-map version and documentation; done means identifying why the method is unavailable and documenting a confirmed resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.