mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibJS: Explicitly invoke Cell constructor in Object(Object& prototype)
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 05:25:28 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/675e7c0e6f0
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user