Is `undefined` garabage collectable?

Boris Zbarsky bzbarsky at mit.edu
Thu May 5 02:30:49 UTC 2016


On 5/4/16 5:03 PM, Steve Fink wrote:
> The only v8 shell I have lying around is too old (3.14.5.10) to have
> Set, so I can't tell you what it would do.

I have v8 "4.8.0 (candidate)" (meaning whatever rev I checked out), and 
it does 1163 minor ("Scavenge") GCs on your testcase.  It also does 1163 
minor GCs if I take out the add() calls.  It does none if I remove the 
clear() calls, no matter whether the add() calls are there or not.

-Boris


More information about the es-discuss mailing list