Open DrawAChicken opened 3 years ago
What is wrong with CL
Looking at the build logs versus https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#browser_compatibility, the bug is obvious. Classes field support started in Node 12, but the .travis.yml file mandates testing against Node 6, 8, and 10.
Looking at the build logs versus https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#browser_compatibility, the bug is obvious. Classes field support started in Node 12, but the .travis.yml file mandates testing against Node 6, 8, and 10.
No, the Node version is irrelevant here. The parser used is acorn, and the issue is that test/compare-acorn-es2019/
directory is being processed without the acorn-class-fields
plugin. Here:
And here:
I added a PR that supersedes this with more tests that pass: https://github.com/estools/escodegen/pull/465
This is required because Acorn uses acorn-class-fields.