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

Not throw Location.Error in the parser #1695

Merged
merged 2 commits into from
Dec 11, 2017
Merged

Conversation

chenglou
Copy link
Member

@chenglou chenglou commented Dec 9, 2017

Fixes #1691

This is because our public API says we only ever throw Syntaxerr.Error or Syntax_utils.Error. This caused https://github.com/facebook/reason/blob/731e605870e22fdcb3d37f3f963d346f18a072cc/bspacks/refmtJsApi.ml#L49 not to catch the extra Location.Error correctly and failing to massage the data structure before using it in the browser.

Fixes reasonml#1691

This is because our public API says we only ever throw Syntaxerr.Error or Syntax_utils.Error. This caused https://github.com/facebook/reason/blob/731e605870e22fdcb3d37f3f963d346f18a072cc/bspacks/refmtJsApi.ml#L49 not to catch the extra Location.Error correctly and failing to massage the data structure before using it in the browser.
@chenglou chenglou merged commit 0e5e83f into reasonml:master Dec 11, 2017
@chenglou chenglou deleted the fix-err branch December 11, 2017 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants