1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

LibJS: Add Object constructor allowing null prototype

This commit is contained in:
Linus Groh 2022-02-09 19:34:33 +00:00
parent f663c7d6da
commit 368af9ad6e
2 changed files with 10 additions and 2 deletions

View file

@ -1,6 +1,6 @@
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2020-2021, Linus Groh <linusg@serenityos.org>
* Copyright (c) 2020-2022, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -45,6 +45,7 @@ class Object : public Cell {
public:
static Object* create(GlobalObject&, Object* prototype);
Object(GlobalObject&, Object* prototype);
explicit Object(Object& prototype);
explicit Object(Shape&);
virtual void initialize(GlobalObject&) override;