4 ms·
That ought actually be: --js-flags="--max-old-space-size=500" Hyphens not underscores. A list of V8 flags can be found with: --js-flags="--help"
by 19eightyfour 10y ago
That ought actually be:
--js-flags="--max-old-space-size=500"
Hyphens not underscores.
A list of V8 flags can be found with:
--js-flags="--help"
- brazzledazzle 10y agoI think it may accept both the underscore and hyphen and just normalizes it.
- deleted 10y ago[deleted]
- 19eightyfour 10y agoThis is correct, it does accept both, and the help lists it as underscores not hyphens. So the comment about it ought to be hyphens not underscores is incorrect. Either is fine.
- brazzledazzle 10y agoWhen I went digging through the code for v8 I believe I saw examples of it both ways. I'm not dead sure though because I don't know very much C. I just checked because I was hoping they weren't actually using an invalid flag for all that time.