quickjs-emscripten
Advanced tools
Changelog
v0.24.0
#127 Upgrade to quickjs 2023-12-09:
#125 (thanks to @tbrockman):
#111 (thanks to @yourWaifu) ArrayBuffer and binary json encoding:
context.newArrayBuffer(bufferLike)
creates an ArrayBuffer in the VM from a buffer-like object.context.getArrayBuffer(handle)
creates a view on an ArrayBuffer in the VM as a UInt8Array on the host.context.encodeBinaryJSON(handle)
encodes a QuickJS handle in QuickJS's binary format (like JSON.stringify)context.decodeBinaryJSON(handle)
decodes a QuickJS handle containing the binary format (like JSON.parse)Changelog
v0.23.0
QuickJSAsyncRuntime.setMaxStackSize(stackSizeBytes)
now also adjusts the ASYNCIFY_STACK_SIZE for the entire module.Changelog
v0.22.0
#78, #105 (thanks to @ayaboy) add Symbol helpers context.newUniqueSymbol
, context.newSymbolFor
, as well as support for symbols in context.dump
.
#104 BigInt support.
#100 Breaking change upgrade Emscripten version and switch to async import(...)
for loading variants.
We also drop support for older browsers and Node versions: