diff --git a/core/interop/src/loaders/embedded.rs b/core/interop/src/loaders/embedded.rs index 11a3d709339..c58c5674e4b 100644 --- a/core/interop/src/loaders/embedded.rs +++ b/core/interop/src/loaders/embedded.rs @@ -8,6 +8,7 @@ use std::path::Path; use boa_engine::module::{ModuleLoader, Referrer}; use boa_engine::{Context, JsError, JsNativeError, JsResult, JsString, Module, Source}; +/// Normalize a specifier to remove `.` and `..` components. fn normalize_specifier(specifier: &JsString) -> JsResult { let specifier = specifier.to_std_string_escaped(); let components = specifier.split('/').collect::>();