Skip to content

Conversation

@benvinegar
Copy link
Contributor

}

if (data.exception) {
var stacktrace = data.stacktrace || data.exception && data.exception.values[0].stacktrace;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe move this comment about data.exception guaranteeing other keys to be before this var decl; in its current position it doesn't obviously apply to data.exception.values[0], which made me wonder if that was a safe access until I looked at the original where it did obviously apply.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

@benvinegar benvinegar merged commit 6fa89f2 into master Nov 22, 2016
@benvinegar benvinegar deleted the fix-rn-normalize branch November 22, 2016 23:46
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.

3 participants