v8: refactor the v8 module
- Use the more efficient
module.exports = {}
pattern, - Refactor the imports from bindings and requires
- Add a benchmark
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
v8