From 66a866451874e687ac4de85501b54a1911e7cf92 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 17 Jul 2023 21:15:55 -0400 Subject: [PATCH] LibJS: Provide a mutable SourceTextModule to HostGetImportMetaProperties The Web host, for example, will need mutable references to objects owned by the SourceTextModule. --- Userland/Libraries/LibJS/Runtime/VM.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/VM.h b/Userland/Libraries/LibJS/Runtime/VM.h index 015a5bfe45..6168f542cc 100644 --- a/Userland/Libraries/LibJS/Runtime/VM.h +++ b/Userland/Libraries/LibJS/Runtime/VM.h @@ -258,7 +258,7 @@ public: Function(ScriptOrModule, ModuleRequest, PromiseCapability const&)> host_import_module_dynamically; Function host_finish_dynamic_import; - Function(SourceTextModule const&)> host_get_import_meta_properties; + Function(SourceTextModule&)> host_get_import_meta_properties; Function host_finalize_import_meta; Function()> host_get_supported_import_assertions;