fengari
fengari copied to clipboard
Implement parts of lua_gc
Collection:
- IE has
window.CollectGarbage - If node is started with
--expose-gcthen you get aglobal.gcfunction. - Chrome can be started with a similar flag to get
window.gc - Opera has
window.opera.collect()
Accounting:
- Webkit browsers have
performance.memory.usedJSHeapSize
This could demand a lot of work. Maybe the payoff is not worth it.
We can go arg-by-arg, browser-by-browser. We'll figure it out as we go.