The GC would scan whatever the program told it to scan, by using its API, like the Boehm GC library:
https://en.wikipedia.org/wiki/Boehm_garbage_collectorI think it only makes sense, seeing as interaction with the native JS VM will be inevitable for a long time.