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

Integrate with full test suites #113

Open
ishitatsuyuki opened this issue Jan 5, 2019 · 1 comment
Open

Integrate with full test suites #113

ishitatsuyuki opened this issue Jan 5, 2019 · 1 comment
Labels

Comments

@ishitatsuyuki
Copy link
Contributor

The current parser is probably not fully conformant to the ECMA spec. We need more thorough test cases; there are probably two ways to pick:

  1. esprima test cases. These are the test cases of a well-known parser, and is focused only on parsing. Case study: used by esprit.
  2. test262 test cases. These are the official conformance tests, designed to be not only parsed but also executed (which is a bit off for a parser). Case study: used by swc.
@cmtt
Copy link
Member

cmtt commented Jan 5, 2019

It is worth noting that esprima also uses the official test262 tests using the test262-stream package apart from project-specific unit tests.

For this project, it would be beneficial to generate tests which attempt to parse the code from the test262 test suite.

For ratel-cli, a snapshot of the work at node-compat-table has been added in order to check for non-supported language features, see f.e. this build's output.

@cmtt cmtt added the tests label Jan 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants