fengari icon indicating copy to clipboard operation
fengari copied to clipboard

Implement parts of lua_gc

Open daurnimator opened this issue 8 years ago • 2 comments

Collection:

  • IE has window.CollectGarbage
  • If node is started with --expose-gc then you get a global.gc function.
  • Chrome can be started with a similar flag to get window.gc
  • Opera has window.opera.collect()

Accounting:

  • Webkit browsers have performance.memory.usedJSHeapSize

daurnimator avatar Dec 28 '17 09:12 daurnimator

This could demand a lot of work. Maybe the payoff is not worth it.

giann avatar Dec 28 '17 17:12 giann

We can go arg-by-arg, browser-by-browser. We'll figure it out as we go.

daurnimator avatar Dec 29 '17 08:12 daurnimator