| 1 | use crate::{ |
|---|---|
| 2 | bindgen_runtime::{TypeName, ValidateNapiValue}, |
| 3 | ValueType, |
| 4 | }; |
| 5 | |
| 6 | use super::Value; |
| 7 | |
| 8 | #[derive(Clone, Copy)] |
| 9 | pub struct JsUndefined(pub(crate) Value); |
| 10 | |
| 11 | impl TypeName for JsUndefined { |
| 12 | fn type_name() -> &'static str { |
| 13 | "undefined" |
| 14 | } |
| 15 | |
| 16 | fn value_type() -> crate::ValueType { |
| 17 | ValueType::Undefined |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | impl ValidateNapiValue for JsUndefined {} |
| 22 |
