Skip to content

Commit

Permalink
Add description of function
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl committed Apr 6, 2024
1 parent d3e1ca7 commit 06551cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/interop/src/loaders/embedded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<JsString> {
let specifier = specifier.to_std_string_escaped();
let components = specifier.split('/').collect::<Vec<_>>();
Expand Down

0 comments on commit 06551cb

Please sign in to comment.