quickjs-emscripten
quickjs-emscripten copied to clipboard
Improve memory accounting
- Enable
malloc_usable_sizeand other previously linux-only features that Emscripten can actually emulate. This should improve memory accounting. - Breaking:
runtime.computeMemoryUsage()now directly returns a host Javascript object, instead of a handle. We no longer need a "system context" to pass the result back as a JSValue. - remove
runtime.getSystemContext()since it has no callers and isprivate - Breaking: Use Emscripten STRICT=1 mode, dropping some properties previously exposed on the Emscripten module type
- Maybe breaking: Enable Emscripten WASM_BIGINT=1 mode, which may cause some internal functions to return
bigintinstead ofnumber.
Fixes #206