mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02: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:
Notes:
sideshowbarker
2024-07-19 05:25:37 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ba641e97d93
@@ -39,7 +39,7 @@ NumberObject* NumberObject::create(GlobalObject& global_object, double value)
|
||||
}
|
||||
|
||||
NumberObject::NumberObject(double value, Object& prototype)
|
||||
: Object(&prototype)
|
||||
: Object(prototype)
|
||||
, m_value(value)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user