mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-31 23:42:52 +00:00
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)
This commit is contained in:
parent
fc4ed8d444
commit
ba641e97d9
Notes:
sideshowbarker
2024-07-19 05:25:37 +09:00
Author: https://github.com/awesomekling
Commit: ba641e97d9
33 changed files with 57 additions and 45 deletions
|
@ -36,7 +36,7 @@ namespace Web {
|
|||
namespace Bindings {
|
||||
|
||||
LocationObject::LocationObject(JS::GlobalObject& global_object)
|
||||
: Object(global_object.object_prototype())
|
||||
: Object(*global_object.object_prototype())
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue