2020-11-25 18:42:14 +09:00
|
|
|
use napi::{JsObject, Result};
|
2020-09-02 18:05:53 +09:00
|
|
|
|
|
|
|
mod date;
|
|
|
|
|
2020-11-25 18:42:14 +09:00
|
|
|
pub fn register_js(exports: &mut JsObject) -> Result<()> {
|
|
|
|
exports.create_named_method("testObjectIsDate", date::test_object_is_date)?;
|
|
|
|
exports.create_named_method("testCreateDate", date::test_create_date)?;
|
|
|
|
exports.create_named_method("testGetDateValue", date::test_get_date_value)?;
|
2020-09-02 18:05:53 +09:00
|
|
|
Ok(())
|
|
|
|
}
|