- Version: 8.8.1
- Platform: Win64
- Subsystem: v8 module
There is an issue in this version of Node, where --expose_gc works as a command line option, but not when used by v8.setFlagsFromString:
When one uses this input:
$>node --expose_gc
js>typeof global.gc
The output is:
In contrast, when one uses this:
$>node
js>require("v8").setFlagsFromString('--expose_gc');
js>typeof global.gc
The output is:
The output should be 'function', since this should enable the global.gc function.