vm: fix gc bug with modules and compiled functions
@guybedford @addaleax @hashseed @targos
Fixes #27492 (closed) Fixes https://github.com/nodejs/node-v8/issues/111
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines