> JS is a garbage-collected language. All you have to do to GC something is stop referencing it.
That works well for JS... but if you are trying to use asm.js (or now wasm), you need to act on things getting garbage collected inside of your code.
That works well for JS... but if you are trying to use asm.js (or now wasm), you need to act on things getting garbage collected inside of your code.
Any asm.js code that calls into DOM apis is going to need this. Otherwise they don't know when to free stuff.
Most of the current asm.js code out there just binds a single canvas element, and works with that. But if you want to actually call anything else....