Browse Source

LibJS: Provide a mutable SourceTextModule to HostGetImportMetaProperties

The Web host, for example, will need mutable references to objects owned
by the SourceTextModule.
Timothy Flynn 2 years ago
parent
commit
66a8664518
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibJS/Runtime/VM.h

+ 1 - 1
Userland/Libraries/LibJS/Runtime/VM.h

@@ -258,7 +258,7 @@ public:
     Function<ThrowCompletionOr<void>(ScriptOrModule, ModuleRequest, PromiseCapability const&)> host_import_module_dynamically;
     Function<ThrowCompletionOr<void>(ScriptOrModule, ModuleRequest, PromiseCapability const&)> host_import_module_dynamically;
     Function<void(ScriptOrModule, ModuleRequest const&, PromiseCapability const&, Promise*)> host_finish_dynamic_import;
     Function<void(ScriptOrModule, ModuleRequest const&, PromiseCapability const&, Promise*)> host_finish_dynamic_import;
 
 
-    Function<HashMap<PropertyKey, Value>(SourceTextModule const&)> host_get_import_meta_properties;
+    Function<HashMap<PropertyKey, Value>(SourceTextModule&)> host_get_import_meta_properties;
     Function<void(Object*, SourceTextModule const&)> host_finalize_import_meta;
     Function<void(Object*, SourceTextModule const&)> host_finalize_import_meta;
 
 
     Function<Vector<DeprecatedString>()> host_get_supported_import_assertions;
     Function<Vector<DeprecatedString>()> host_get_supported_import_assertions;