evanw / evanw/node-source-map-support

Should globals be saved during installation?

Offen
#199 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
2.2k
Forks
223
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I think source-map-support is most frequently used in testing and I just ran into an issue where I was using sinon to set up a mock HTTP server during a test. If that test threw an exception, sinon would try to use XMLHTTPRequest to fetch the file / source map against the mock HTTP server, receive a 404, and fail to translate the stack trace. I think it may make sense to save globals like XMLHTTPRequest during installation so that even if they are mocked, source-map-support can use the original.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.