quickjs-done-nextgen/tests
Ben Noordhuis 37fe427d59
Add resizable ArrayBuffers (#646)
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
2024-11-05 21:55:42 +01:00
..
bug633 Allow 'undefined' in let or const declaration (#639) 2024-10-29 22:55:22 +01:00
detect_module Prefix stdlib modules with "qjs:" 2024-10-24 22:24:03 +02:00
assert.js DRY assertion functions in tests 2024-10-10 21:39:12 +02:00
fixture_cyclic_import.js Fix cyclic import/export segfault (#568) 2024-10-16 10:13:38 +02:00
function_source.js Retain function source code in serialized bytecode (#218) 2023-12-16 01:01:26 +01:00
microbench.js Prefix stdlib modules with "qjs:" 2024-10-24 22:24:03 +02:00
test_bigint.js DRY assertion functions in tests 2024-10-10 21:39:12 +02:00
test_bjson.js Add resizable ArrayBuffers (#646) 2024-11-05 21:55:42 +01:00
test_builtin.js Prefix stdlib modules with "qjs:" 2024-10-24 22:24:03 +02:00
test_closure.js DRY assertion functions in tests 2024-10-10 21:39:12 +02:00
test_conv.c Include <intrin.h> on Windows (#584) 2024-10-08 22:32:24 +02:00
test_cyclic_import.js Fix cyclic import/export segfault (#568) 2024-10-16 10:13:38 +02:00
test_language.js DRY assertion functions in tests 2024-10-10 21:39:12 +02:00
test_loop.js DRY assertion functions in tests 2024-10-10 21:39:12 +02:00
test_queue_microtask.js DRY assertion functions in tests 2024-10-10 21:39:12 +02:00
test_std.js Prefix stdlib modules with "qjs:" 2024-10-24 22:24:03 +02:00
test_worker.js Prefix stdlib modules with "qjs:" 2024-10-24 22:24:03 +02:00
test_worker_module.js Prefix stdlib modules with "qjs:" 2024-10-24 22:24:03 +02:00