Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Ensure value is always defined before access #25

Merged
merged 1 commit into from
Oct 27, 2015
Merged

Conversation

jpignata
Copy link
Contributor

In parsing some JSX from relax/relax, we noticed the parser was choking
on trying to access attributes of the loc attribute of a given node. It
looks like we were checking for the presence of value in every other
branch so this change hoists that check up around the processing.

In parsing some JSX from relax/relax, we noticed the parser was choking
on trying to access attributes of the loc attribute of a given node. It
looks like we were checking for the presence of value in every other
branch so this change hoists that check up around the processing.
@gdiggs
Copy link
Contributor

gdiggs commented Oct 27, 2015

LGTM

jpignata added a commit that referenced this pull request Oct 27, 2015
Ensure value is always defined before access
@jpignata jpignata merged commit a63c39e into master Oct 27, 2015
@jpignata jpignata deleted the jp-fix-parser branch October 27, 2015 20:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants