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

Declaring type name upper case blows up the editor #1691

Closed
xixixao opened this issue Dec 8, 2017 · 0 comments
Closed

Declaring type name upper case blows up the editor #1691

xixixao opened this issue Dec 8, 2017 · 0 comments

Comments

@xixixao
Copy link
Contributor

xixixao commented Dec 8, 2017

https://reasonml.github.io/try/?reason=FAFwngDgpgBAGjAvMGMA+MASUA2OD2K6MAQjgIYBGFA3MEA

chenglou added a commit to chenglou/reason that referenced this issue Dec 9, 2017
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 added a commit to chenglou/reason that referenced this issue Dec 11, 2017
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 added a commit to chenglou/reason that referenced this issue Dec 11, 2017
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 added a commit that referenced this issue Dec 11, 2017
* Not throw Location.Error in the parser

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.

* Document it
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

No branches or pull requests

1 participant