From 675e7c0e6f0835578f99368fff3349911b6c4c2b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 23 Jun 2020 18:27:39 +0200 Subject: [PATCH] LibJS: Explicitly invoke Cell constructor in Object(Object& prototype) --- Libraries/LibJS/Runtime/Object.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/LibJS/Runtime/Object.cpp b/Libraries/LibJS/Runtime/Object.cpp index df59e092a5..0624840eff 100644 --- a/Libraries/LibJS/Runtime/Object.cpp +++ b/Libraries/LibJS/Runtime/Object.cpp @@ -97,6 +97,7 @@ Object::Object(ConstructWithoutPrototypeTag, GlobalObject& global_object) } Object::Object(Object& prototype) + : Cell() { m_shape = prototype.global_object().empty_object_shape(); set_prototype(&prototype);