summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-10-16 08:59:51 +0200
committerAndreas Kling <kling@serenityos.org>2020-10-16 08:59:51 +0200
commit2c0e153396c7d6f4fad9fecaf0520e7b0c147ab6 (patch)
tree4126c0ee3dd5e4ca1b9a1a1d6a92149459ae6643 /Libraries/LibJS/Runtime
parent7ad8bb5be6b34dba19825a83938f09c4cf197e2d (diff)
downloadserenity-2c0e153396c7d6f4fad9fecaf0520e7b0c147ab6.zip
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.
Diffstat (limited to 'Libraries/LibJS/Runtime')
-rw-r--r--Libraries/LibJS/Runtime/Shape.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/Shape.cpp b/Libraries/LibJS/Runtime/Shape.cpp
index 4fd26ed631..5e018465f3 100644
--- a/Libraries/LibJS/Runtime/Shape.cpp
+++ b/Libraries/LibJS/Runtime/Shape.cpp
@@ -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;