Skip to content

Commit

Permalink
Limit doctest to unix, for real
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl committed Apr 5, 2024
1 parent c33bdd8 commit 58b6162
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions core/engine/src/module/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ use rustc_hash::FxHashMap;
use boa_gc::GcRefCell;
use boa_parser::Source;

use crate::script::Script;
use crate::{
js_string, object::JsObject, realm::Realm, vm::ActiveRunnable, Context, JsError, JsNativeError,
JsResult, JsString,
Context, js_string, JsError, JsNativeError, JsResult, JsString, object::JsObject,
realm::Realm, vm::ActiveRunnable,
};
use crate::script::Script;

use super::Module;

Expand All @@ -26,7 +26,8 @@ use super::Module;
///
/// # Examples
/// ```
/// #![cfg(target_family = "unix")]
/// #[cfg(target_family = "unix")]
/// # {
/// # use std::path::Path;
/// # use boa_engine::{Context, js_string};
/// # use boa_engine::module::resolve_module_specifier;
Expand All @@ -39,6 +40,7 @@ use super::Module;
/// ),
/// Ok("/base/a.js".into())
/// );
/// # }
/// ```
pub fn resolve_module_specifier(
base: Option<&Path>,
Expand Down

0 comments on commit 58b6162

Please sign in to comment.