From be2cf2627ada6a8538e6f1a30405845d7a638610 Mon Sep 17 00:00:00 2001 From: Marko Lahma Date: Wed, 22 Nov 2023 07:39:49 +0200 Subject: [PATCH] test --- Jint/Runtime/Modules/DefaultModuleLoader.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Jint/Runtime/Modules/DefaultModuleLoader.cs b/Jint/Runtime/Modules/DefaultModuleLoader.cs index b019f8c54e..f0e243bc55 100644 --- a/Jint/Runtime/Modules/DefaultModuleLoader.cs +++ b/Jint/Runtime/Modules/DefaultModuleLoader.cs @@ -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)) { @@ -74,7 +69,7 @@ public ResolvedSpecifier Resolve(string? referencingModuleLocation, string speci return new ResolvedSpecifier( specifier, specifier, - null, + Uri: null, SpecifierType.Bare ); }