quickjs-emscripten icon indicating copy to clipboard operation
quickjs-emscripten copied to clipboard

Clean up functions when disposed

Open justjake opened this issue 4 months ago • 0 comments

When disposed, delete the function from the internal map and add the function id to a "freelist" that will be re-used for the next function created. Only increment ID if no freelist id is available.

Fixes #223

justjake avatar Jun 22 '25 22:06 justjake