Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Commit

Permalink
Stringify NaN before sending breadcrumbs over the bridge
Browse files Browse the repository at this point in the history
Fixes #107
  • Loading branch information
kattrali committed Aug 2, 2017
1 parent f1d603d commit f847a73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bugsnag.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ const typedMap = function(map) {

const value = map[key];

// Checks for both `null` and `undefined`.
if (value == undefined) {
// Checks for `null`, NaN, and `undefined`.
if (value == undefined || isNaN(value)) {
output[key] = {type: 'string', value: String(value)}
} else if (typeof value === 'object') {
output[key] = {type: 'map', value: typedMap(value)};
Expand Down

0 comments on commit f847a73

Please sign in to comment.