Files
ladybird/Libraries/LibJS/Runtime/PromiseResolvingFunction.cpp
Aliaksandr Kalenik 65b09cc4e3 LibJS: Store AlreadyResolved bit on the resolve function itself
Previously, each pair of promise resolving functions allocated a
dedicated AlreadyResolved GC cell to hold a single shared bool. Move the
bit onto the resolve function as a plain member, and have the reject
function reach it through a GC::Ptr back to its paired resolve function.
2026-05-02 20:24:47 +02:00

2.0 KiB