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

Degrade gracefully when there are some parse errors #15

Merged
merged 4 commits into from
Aug 17, 2016
Merged

Conversation

twada
Copy link
Owner

@twada twada commented Aug 4, 2016

Instead of hard error, show syntax error when there are some parse errors caused by not-supported syntax.

example:

  assert.deepEqual({ b, ...obj }, { a, ...obj })
                        ?                       
                        ?                       
                        SyntaxError: Unexpected token (1:22)

  If you are using `babel-plugin-espower` and want to use experimental syntax in your assert(), you should set `embedAst` option to true.
  see: https://github.com/power-assert-js/babel-plugin-espower#optionsembedast

…re some parse errors caused by not-supported syntax
@twada twada mentioned this pull request Aug 4, 2016
9 tasks
@twada twada merged commit 666fc90 into master Aug 17, 2016
@twada twada deleted the graceful branch August 17, 2016 05:44
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.

1 participant