[v8.x] Cherry-pick fix for `make test-v8` from master
Cherry-picking fc45b16e from master
to unbreak V8 CI on v8.x-staging.
Closes: https://github.com/nodejs/node/issues/21433
cc @nodejs/release @nodejs/v8-update @targos @ofrobots @hashseed
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