Skip to content

Commit

Permalink
Only utilize sourcemaps, not the magic. :(
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Nov 27, 2016
1 parent 1a7f838 commit 7442984
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/react-dev-utils/failFast.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,13 @@
const frames2 = []
let pending = frames.length
frames.forEach(function(frame, index) {
gps.pinpoint(frame).then(function(nFrame) {
// Switched from pinpoint due to erratic bugs
// follow: https://github.com/stacktracejs/stacktrace-gps/issues/46
gps.getMappedLocation(frame).then(function(nFrame) {
frames2[index] = nFrame
if (--pending === 0) resolve(frames2)
}).catch(function() {
// Failed to pinpoint frame ... reuse old frame.
// Failed to map frame ... reuse old frame.
frames2[index] = frame
if (--pending === 0) resolve(frames2)
})
Expand Down

0 comments on commit 7442984

Please sign in to comment.