quickjs-done-nextgen/tests
Ben Noordhuis 9c5c441744
Fix FinalizationRegistry refcounting bug (#656)
Introduced in commit 61c8fe6 from last month that moved the callback
into the job queue:

1. It leaked `fre->held_val` when no job was enqueued

2. It fumbled the reference count when enqueuing; JS_EnqueueJob already
   takes care of incrementing and decrementing it

Reverts commit 0a70623 from earlier today because that didn't turn out
to be a complete fix.

Fixes: https://github.com/quickjs-ng/quickjs/issues/648
2024-11-07 09:12:34 +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
bug648.js Fix FinalizationRegistry refcounting bug (#656) 2024-11-07 09:12:34 +01:00
bug652.js Fix exception in WeakRef.prototype.deref (#653) 2024-11-06 22:54:47 +01: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