How to (re)generate ES5/6/7/next compatibility table for Rhino

64 views
Skip to first unread message

P

unread,
Oct 3, 2017, 3:06:59 AM10/3/17
to mozilla-rhino
Hey,

I feel like this table is out of date: http://mozilla.github.io/rhino/compat/engines.html

For sure it's referencing old NodeJs versions, but also feature support for the latest Rhino version seem out of date in places.

I looked through the github repo, the only thing I found was in https://github.com/mozilla/rhino/blob/master/release-steps.txt where is states to 're-run compat-table "engine.js"' and manually copy some files.

Also looked at https://kangax.github.io/compat-table/es6/#rhino1_7, which has a Rhino 1.7 entry under the obsolete platforms, but can't seem to figure out which exact Rhino version it uses (or how it 'gets' the Rhino version and runs its logic against it)

Thoughts?

Gregory Brail

unread,
Oct 5, 2017, 7:31:55 PM10/5/17
to mozill...@googlegroups.com
I had this working a long time ago and realize now that I never documented or automated it. Here's what I had previously:

1) Clone my fork of "compat-table" at https://github.com/gbrail/compat-table
2) git checkout engine-test
3) Edit engines.js to indicate what engines you want to test with, and their file locations (what's in there will certainly not work for you)
3) Remove "engine-results.json" if you want to start all over again and not use old test runs
4) Run "node engine.js <engine name>" to run the tests
5) See the results in "engines.html"
6) Repeat step 4 as long as you'd like with different "engine" parameters.

Every time you run it, it edits the existing compat table in place and generates a bunch of HTML. 

This could certainly be automated by someone, perhaps to run in a Docker container.

It'd be cool if someone could take on the automation and update of this (as you can see, my fork of "compat-table" is just a little bit old...)


--
You received this message because you are subscribed to the Google Groups "mozilla-rhino" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mozilla-rhino+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages