Skip to content

Truly independent web browser

LibJS: Remove the unused resolve set of Module::resolve_export

Shannon Booth7b53d5202442
diff --git a/Libraries/LibJS/Module.cpp b/Libraries/LibJS/Module.cpp
index e32820cac1d..fb36951187b 100644
--- a/Libraries/LibJS/Module.cpp
+++ b/Libraries/LibJS/Module.cpp
@@ -54,10 +54,8 @@ ThrowCompletionOr<GC::Ref<PromiseCapability>> Module::evaluate(VM& vm)
return completion_from_abi<GC::Ref<PromiseCapability>>(js_module_evaluate(vm_to_abi(vm), module_to_abi(*this)));
}
-ResolvedBinding Module::resolve_export(VM& vm, Utf16FlyString const& export_name, Vector<ResolvedBinding> resolve_set)
+ResolvedBinding Module::resolve_export(VM& vm, Utf16FlyString const& export_name)
{
- VERIFY(resolve_set.is_empty());
-
Utf16FlyString binding_name;
JSResolvedBinding abi_binding {
.module = nullptr,
diff --git a/Libraries/LibJS/Module.h b/Libraries/LibJS/Module.h
index fe3f1fcfeb0..85d8ea4023b 100644
--- a/Libraries/LibJS/Module.h
+++ b/Libraries/LibJS/Module.h
@@ -83,7 +83,7 @@ public:
ThrowCompletionOr<GC::Ref<PromiseCapability>> evaluate(VM& vm);
// The runtime resolves an export with a resolve set of its own, so a host passes none.
- ResolvedBinding resolve_export(VM& vm, Utf16FlyString const& export_name, Vector<ResolvedBinding> resolve_set = {});
+ ResolvedBinding resolve_export(VM& vm, Utf16FlyString const& export_name);
PromiseCapability& load_requested_modules(GC::Ptr<GC::Cell> host_defined);