mirror of https://github.com/boa-dev/boa.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
519 B
16 lines
519 B
// We could use `web-time` directly, but that would make it harder to add support |
|
// for other platforms in the future e.g. `no_std` targets. |
|
// We could also pull `web-time` and customize it for our target selection |
|
cfg_if::cfg_if! { |
|
if #[cfg(all( |
|
target_family = "wasm", |
|
not(any(target_os = "emscripten", target_os = "wasi")), |
|
feature = "js" |
|
))] { |
|
mod js; |
|
pub(crate) use self::js::*; |
|
} else { |
|
mod fallback; |
|
pub(crate) use self::fallback::*; |
|
} |
|
}
|
|
|