mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibJS: Let Shape store a Realm instead of a GlobalObject
This is a cautious first step towards being able to create JS objects before a global object has been instantiated.
This commit is contained in:
parent
7a6935a2ff
commit
50d951aea2
Notes:
sideshowbarker
2024-07-17 08:25:46 +09:00
Author: https://github.com/awesomekling
Commit: 50d951aea2
22 changed files with 104 additions and 55 deletions
|
@ -92,8 +92,9 @@ Optional<FunctionAndArgumentIndex> get_function_and_argument_index(StringView so
|
|||
return {};
|
||||
}
|
||||
|
||||
SheetGlobalObject::SheetGlobalObject(Sheet& sheet)
|
||||
: m_sheet(sheet)
|
||||
SheetGlobalObject::SheetGlobalObject(JS::Realm& realm, Sheet& sheet)
|
||||
: JS::GlobalObject(realm)
|
||||
, m_sheet(sheet)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue