worker_threads: add support for .cjs extension
This PR allows worker filenames to use .cjs
extension (in addition of .js
and .mjs
).
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines