The GC would scan whatever the program told it to scan, by using its API, like the Boehm GC library: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Boehm_garbage_collector" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Boehm_garbage_collector</a><p>I think it only makes sense, seeing as interaction with the native JS VM will be inevitable for a long time.