ast-types icon indicating copy to clipboard operation
ast-types copied to clipboard

Support ESTree es-proposal class features

Open tchetwin opened this issue 5 years ago • 3 comments

This PR:

  • updates ast-types to tolerate the final ESTree ES2022 class-features specification
  • extends the existing validateECMAScript test function to also verify parsing with @babel/parser and acorn
  • adds an additional fixture to exercise new class syntax

Very happy to take any feedback, in particular on the def structure and sharing/overriding between es-proposals/babel/typescript and the test methodology.

tchetwin avatar Feb 15 '21 14:02 tchetwin

Class Features achieved Stage 4 today: https://twitter.com/robpalmer2/status/1384208760420274176

So hopefully along with https://github.com/acornjs/acorn/issues/1025 I can remove the Draft flag 😉

tchetwin avatar Apr 19 '21 21:04 tchetwin

Finally got back here to switch to acorn without the need for a stage-3 plugin!

tchetwin avatar May 27 '21 17:05 tchetwin

Need to move from def/es-proposals.ts to def/es2022.ts now really, and that has knock-on consequences

tchetwin avatar May 28 '21 10:05 tchetwin