ladybird/Tests/LibJS
Andreas Kling 6232ad3a0d LibJS: Remove "uprooting" mechanism from garbage collector
The Heap::uproot_cell() API was used to implement markAsGarbage() which
was used in 3 tests to forcibly destroy a value, even if it had
references on the stack or elsewhere.

This patch rewrites the 3 tests that used this mechanism to be
structured in a way that allows garbage collection to collect the values
as intended without hacks. And now that the uprooting mechanism is no
longer needed, it's uprooted as well.

This fixes 3 test-js tests in bytecode mode. :^)
2023-07-21 14:14:00 +02:00
..
CMakeLists.txt Tests: Remove test-bytecode-js 2023-06-22 21:16:17 +02:00
test262-runner.cpp test262-runner+js: Respect the bytecode optimizations enabled flag 2023-06-27 14:35:23 +03:30
test-invalid-unicode-js.cpp Userland+Tests: Remove a few more LibJS/{AST.h,Parser.h} includes 2022-11-23 16:05:59 +00:00
test-js.cpp LibJS: Remove "uprooting" mechanism from garbage collector 2023-07-21 14:14:00 +02:00
test-test262.cpp LibCore: Port Command::write_lines to ErrorOr 2023-07-18 14:48:45 +01:00
test-value-js.cpp AK+LibJS: Handle NaN-boxing pointers on AArch64 2022-09-21 11:55:57 +02:00