src: use JS inheritance for `AsyncWrap`
For all classes descending from AsyncWrap
, use JS inheritance
instead of manually adding methods to the individual classes.
This allows cleanup of some code around transferring handles over IPC.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines