Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isolating JSON parsing exception in jsonParse #110

Merged
merged 1 commit into from
May 9, 2016

Conversation

evansiroky
Copy link
Contributor

In previous code, the entire callback along with JSON parsing was
encapsulated with a try / catch block. Thus any error that occurs
within the callback bubbles up to and is caught in this scope.

I added a unit test to specifically test for this in
test\unit\utils\jsonParseTest.js called should call the callback only once if an error is thrown in callback execution.

In previous code, the entire callback along with JSON parsing was
encapsulated with a try / catch block.  Thus any error that occurs
within the callback bubbles up to and is caught in this scope.

I added a unit test to specifically test for this in
`test\unit\utils\jsonParseTest.js` called `should call the callback only
once if an error is thrown in callback execution`.
@fabriziomoscon fabriziomoscon merged commit 996f11c into moshen:master May 9, 2016
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.

2 participants