tc39 / eshost

A uniform wrapper around a multitude of ECMAScript hosts. CLI: https://github.com/bterlson/eshost-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

$262: Create a new host api for invoking garbage collector.

rwaldron opened this issue · comments

In order to properly test WeakRefs, we may need to expose a new API that wraps each host's garbage collection invocation.

Host GC Requires
ChakraCore CollectGarbage() -CollectGarbage w/ Test or Debug build
JavaScriptCore gc() n/a
Node gc() --expose-gc
V8 gc() --expose-gc
SpiderMonkey gc() n/a
Engine262 todo: can we get v8 options forwarded? Maybe a special case, like: --v8-args="--expose-gc" ?
Moddable XS xs_gc needs to be added to xst?