#[cfg(test)]
mod tests;
use crate::{builtins::BuiltIn, property::Attribute, BoaProfiler, Context, JsValue};
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub(crate) struct NaN;
impl BuiltIn for NaN {
const NAME: &'static str = "NaN";
fn attribute() -> Attribute {
Attribute::READONLY | Attribute::NON_ENUMERABLE | Attribute::PERMANENT
}
fn init(_: &mut Context) -> (&'static str, JsValue, Attribute) {
let _timer = BoaProfiler::global().start_event(Self::NAME, "init");
(Self::NAME, f64::NAN.into(), Self::attribute())
}
}