diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-23 17:21:53 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-23 17:21:53 +0200 |
commit | ba641e97d9326be94b0b281fe140b5849c626b50 (patch) | |
tree | 2eea0d35a1b391a9a78c9c838fe69779f1a3eef7 /Libraries/LibWeb/Bindings/Wrapper.h | |
parent | fc4ed8d444535f6ddf5b2d8f414466e2bdfb46b5 (diff) | |
download | serenity-ba641e97d9326be94b0b281fe140b5849c626b50.zip |
LibJS: Clarify Object (base class) construction somewhat
Divide the Object constructor into three variants:
- The regular one (takes an Object& prototype)
- One for use by GlobalObject
- One for use by objects without a prototype (e.g ObjectPrototype)
Diffstat (limited to 'Libraries/LibWeb/Bindings/Wrapper.h')
-rw-r--r-- | Libraries/LibWeb/Bindings/Wrapper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Bindings/Wrapper.h b/Libraries/LibWeb/Bindings/Wrapper.h index 5fc5abc606..b24cadd02e 100644 --- a/Libraries/LibWeb/Bindings/Wrapper.h +++ b/Libraries/LibWeb/Bindings/Wrapper.h @@ -42,7 +42,7 @@ class Wrapper public: protected: explicit Wrapper(Object& prototype) - : Object(&prototype) + : Object(prototype) { } }; |