[v10.x] n-api: implement date object
Implements napi_create_date()
as well as napi_is_date()
to
allow working with JavaScript Date objects.
PR-URL: https://github.com/nodejs/node/pull/25917
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines