1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 00:45:08 +00:00

LibWeb: Move ClassicScript::m_settings_object into the Script base

All Scripts have an associated settings object.
https://html.spec.whatwg.org/multipage/webappapis.html#settings-object
This commit is contained in:
Luke Wilde 2022-06-27 19:50:40 +01:00 committed by Linus Groh
parent 885c6b6678
commit 17a26853e1
4 changed files with 17 additions and 15 deletions

View file

@ -28,8 +28,6 @@ public:
JS::Script* script_record() { return m_script_record; }
JS::Script const* script_record() const { return m_script_record; }
EnvironmentSettingsObject& settings_object() { return m_settings_object; }
enum class RethrowErrors {
No,
Yes,
@ -41,7 +39,6 @@ public:
private:
ClassicScript(AK::URL base_url, String filename, EnvironmentSettingsObject& environment_settings_object);
EnvironmentSettingsObject& m_settings_object;
RefPtr<JS::Script> m_script_record;
MutedErrors m_muted_errors { MutedErrors::No };
Optional<JS::Parser::Error> m_error_to_rethrow;