test: force context allocation in test module
This is to anticipate test/parallel/test-inspector-esm.js
failing due to V8's behavior changing in c3bd741efd.
Top-level variables in a module are then no longer context-allocated by default. That however is expected in the test. This change forces context allocation by closing over top-level variables.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test