tc39 / eshost

A uniform wrapper around a multitude of ECMAScript hosts. CLI: https://github.com/bterlson/eshost-cli
Other
142 stars 36 forks source link

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

Closed rwaldron closed 5 years ago

rwaldron commented 5 years ago

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?