Putting e.g a Vector<JS::GCPtr<JS::Object>>
on the stack is not safe, as Vector
is backed by malloc memory.
Consequently, it's also inappropriate as a function return type.
We should complain about this, so the user can switch to using MarkedVector<JS::GCPtr<JS::Object>>
or at least Vector<JS::Handle<JS::Object>>
.
We need to do this for all malloc-backed containers, but for simplicity let's say: Vector, HashMap, HashTable, and Queue.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too