1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00

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
parent 7ad8bb5be6
commit 2c0e153396

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;