mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-05 01:42:54 +00:00
LibJS+LibWeb: Make JS::Script and Web::HTML::ClassicScript use Realms
The spec wants Script Records to have a Realm, not a GlobalObject.
This commit is contained in:
parent
673fc02ac5
commit
106f295916
Notes:
sideshowbarker
2024-07-18 04:09:49 +09:00
Author: https://github.com/linusg
Commit: 106f295916
Pull-request: https://github.com/SerenityOS/serenity/pull/9988
Reviewed-by: https://github.com/alimpfard
5 changed files with 17 additions and 16 deletions
|
@ -20,7 +20,7 @@ public:
|
|||
No,
|
||||
Yes,
|
||||
};
|
||||
static NonnullRefPtr<ClassicScript> create(String filename, StringView source, JS::GlobalObject&, URL base_url, MutedErrors = MutedErrors::No);
|
||||
static NonnullRefPtr<ClassicScript> create(String filename, StringView source, JS::Realm&, URL base_url, MutedErrors = MutedErrors::No);
|
||||
|
||||
JS::Script* script_record() { return m_script_record; }
|
||||
JS::Script const* script_record() const { return m_script_record; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue