LibJS: Don't bother deferring GC during ensure_property_table()

This is not actually necessary, since no GC allocations are made during
this process. If we ever make property tables into heap cells, we'd
have to rethink this.
This commit is contained in:
Andreas Kling 2020-10-16 08:59:51 +02:00
commit 2c0e153396
Notes: sideshowbarker 2024-07-19 01:53:20 +09:00

View file

@ -151,8 +151,6 @@ void Shape::ensure_property_table() const
return;
m_property_table = make<HashMap<StringOrSymbol, PropertyMetadata>>();
DeferGC defer(heap());
u32 next_offset = 0;
Vector<const Shape*, 64> transition_chain;