Skip to content

stop JSON-stringification from throwing and instead return error on cb#86

Open
sandfox wants to merge 1 commit intomixpanel:masterfrom
sandfox:json-stringify-nothrow
Open

stop JSON-stringification from throwing and instead return error on cb#86
sandfox wants to merge 1 commit intomixpanel:masterfrom
sandfox:json-stringify-nothrow

Conversation

@sandfox
Copy link

@sandfox sandfox commented Feb 8, 2016

Throwing when JSON.stringify errors seems a little unfriendly as it requires users to wrap every use of the library with a try/catch block and the library probably shouldn't throw anyway as the user has induced the error, rather the library itself doing something daft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments