Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
lahma committed Nov 22, 2023
1 parent 4b4d64f commit be2cf26
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Jint/Runtime/Modules/DefaultModuleLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ public sealed class DefaultModuleLoader : IModuleLoader
private readonly Uri _basePath;
private readonly bool _restrictToBasePath;

public DefaultModuleLoader(string basePath) : this(basePath, true)
{

}

public DefaultModuleLoader(string basePath, bool restrictToBasePath)
public DefaultModuleLoader(string basePath, bool restrictToBasePath = true)
{
if (string.IsNullOrWhiteSpace(basePath))
{
Expand Down Expand Up @@ -74,7 +69,7 @@ public ResolvedSpecifier Resolve(string? referencingModuleLocation, string speci
return new ResolvedSpecifier(
specifier,
specifier,
null,
Uri: null,
SpecifierType.Bare
);
}
Expand Down

0 comments on commit be2cf26

Please sign in to comment.