mirror of
https://github.com/DoneJS-Runtime/quickjs-done-nextgen.git
synced 2025-01-09 17:43:15 +00:00
37fe427d59
This commit implements resizable ArrayBuffers - RABs for short - and extends typed arrays (TAs) to support fixed-length and length-tracking modes. SharedArrayBuffers (SABs) also support the maxByteLength option now but I cheated and allocate all memory upfront because atomically resizing memory allocations is hard and this commit is already big and complex. The lion's share is updating all the TA prototype methods to deal with RABs resizing underneath them. Method arguments can be arbitrary objects with arbitrary .valueOf methods and arbitrary side effects, like... resizing the RAB we're currently operating on. Fixes: https://github.com/quickjs-ng/quickjs/issues/477 |
||
---|---|---|
.. | ||
bug633 | ||
detect_module | ||
assert.js | ||
fixture_cyclic_import.js | ||
function_source.js | ||
microbench.js | ||
test_bigint.js | ||
test_bjson.js | ||
test_builtin.js | ||
test_closure.js | ||
test_conv.c | ||
test_cyclic_import.js | ||
test_language.js | ||
test_loop.js | ||
test_queue_microtask.js | ||
test_std.js | ||
test_worker.js | ||
test_worker_module.js |