Skip to content

build: rewrite js2c in js

Rodrigo Muino Tomonari requested to merge github/fork/devsnek/refactor/js2c into master

I think at this point node is mature enough to be used in the build process for node. That being said, js2c.py is evil. The source is near impossible to reason with due to being partially patched to fix various things over the years. Rewriting it in js allowed me to simplify the code by removing parts of it node doesn't use and i think i managed to fix #19503 (closed)

In another PR i am planning to rewrite how our macros are declared and update the syntax for them a little bit.

/cc @nodejs/build

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading