Skip to content

Commit 7442984

Browse files
committed
Only utilize sourcemaps, not the magic. :(
1 parent 1a7f838 commit 7442984

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/react-dev-utils/failFast.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@
101101
const frames2 = []
102102
let pending = frames.length
103103
frames.forEach(function(frame, index) {
104-
gps.pinpoint(frame).then(function(nFrame) {
104+
// Switched from pinpoint due to erratic bugs
105+
// follow: https://github.com/stacktracejs/stacktrace-gps/issues/46
106+
gps.getMappedLocation(frame).then(function(nFrame) {
105107
frames2[index] = nFrame
106108
if (--pending === 0) resolve(frames2)
107109
}).catch(function() {
108-
// Failed to pinpoint frame ... reuse old frame.
110+
// Failed to map frame ... reuse old frame.
109111
frames2[index] = frame
110112
if (--pending === 0) resolve(frames2)
111113
})

0 commit comments

Comments
 (0)