mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-04 18:27:42 +00:00
LibWeb: Implement prepare_to_run_script on a Realm&
Making further progress porting away from depending on the EnvironmentSettingObject.
This commit is contained in:
committed by
Andrew Kaster
parent
d6fdaf6b26
commit
8dffd8e7d6
@@ -1305,8 +1305,7 @@ WebIDL::ExceptionOr<JS::Value> structured_deserialize(JS::VM& vm, SerializationR
|
||||
memory = DeserializationMemory { vm.heap() };
|
||||
|
||||
// IMPLEMENTATION DEFINED: We need to make sure there's an execution context for target_realm on the stack before constructing these JS objects
|
||||
auto& target_settings = Bindings::host_defined_environment_settings_object(target_realm);
|
||||
target_settings.prepare_to_run_script();
|
||||
prepare_to_run_script(target_realm);
|
||||
|
||||
auto result = TRY(structured_deserialize_internal(vm, serialized.span(), target_realm, *memory));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user