For example, I want to disable the new heap snapshots so I type something like this:
But I get an error: Error: illegal value for flag –new_snapshot=false of type bool
What am I missing about the syntax?
I had to dig into v8 source code to get this. For some reason I couldn’t find it documented. However, a boolean option is enabled by setting
--option and disabled by using
--nooption (note the
So in your case use
I bumped into this while I was looking for something else and this is a better way to find out what is available in v8 on node.js. You can get the options by running the following command.