-
-
Notifications
You must be signed in to change notification settings - Fork 255
Incorporating Test262 #633
Comments
Hey @jugglinmike! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
Hey @jugglinmike thanks for reaching out 😀! I've also talked to @leobalter/@littledan a bit about this so definetely have had some interest for a while (also ref https://twitter.com/littledan/status/880436506996994048)
|
Excellent :) Some initial questions:
With those answered, I should be able to put together an initial proof of
Looks like I forgot to include the URL--whoops! I've fixed that in the original |
@hzoo I think I may have some time to give this a try over the weekend. I'm |
I made a first try here babel/babel#4987. |
Prev issue I found was babel/babel#4987
Yeah could possibly a git submodule, I guess an npm package would be too slow to install? Otherwise a separate repo that downloads the babel repo (opposite approach) not sure, we can try it here.
Yeah that's fine
yeah new "job" just like we have for linting, etc. Not sure if it needs to run every PR yet since we'll need to figure out how to filter everything at first.
yeah probably just lts All your responses are reasonable 😄 |
@xtuc I saw that--very good. However, as I mentioned above, even when/if Babel runs Test262, I think there is still value in testing the parser itself.
I raised this issue a while back, but nothing ever came of it. More recently, I've been thinking that Test262 may not be well-suited to typical software publication channels due to its consumption model. Folks that use the test suite generally expect to get the latest version of Though I'm just trying to give some background on my current thinking. I'd be happy to get more input! For the time being, I'll work with a git submodule. |
I've submitted a patch for this at #654. |
Closed by #654 Also if you go to https://github.com/babel you can accept an invite to the org (read access so we can assign people to stuff, mostly for https://github.com/babel/proposals) but can give write access if anyone wants too cc @rwaldron who didn't accept yet either 😄 |
I always forget that Github made it so I have to accept "invites", vs the old way of just adding people. |
I recently extended the Test262 project to include additional metadata for "negative" tests. Specifically: tests that are expected to produce early errors and syntax errors can now be automatically distinguished for tests that are expected to produce runtime errors.
My goal was to make the tests consumable by JavaScript parsers. I've since incorporated the tests into the JSHint project, and it's been very useful for fixing bugs and preventing regressions. I'd like to help other Free and Open Source parsers do the same.
Judging from the response to a previously-reported issue on the topic, I believe there is interest for including Test262 here. That issue was closed with Babel's inclusion of the project, but I think there is still value in testing the parser itself. If any of the maintainers can confirm their interest, I would be happy to follow up with some more specific practical questions (e.g. submodule usage, etc.) and go from there.
The text was updated successfully, but these errors were encountered: