$262: Create a new host api for invoking garbage collector.
rwaldron opened this issue · comments
Rick Waldron commented
In order to properly test WeakRef
s, 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? |