diff options
author | Jarrod Connolly <jarrod@nestedquotes.ca> | 2019-02-04 10:26:33 +0300 |
---|---|---|
committer | Michael Dawson <michael_dawson@ca.ibm.com> | 2019-03-01 01:43:37 +0300 |
commit | 13b1aafe8710f5df733fd42bed8b1e1321160505 (patch) | |
tree | bf7018fdf0eb8e6509f22faf0b163089f669ba7e /src/js_native_api_types.h | |
parent | 3f31c884ff112dd7c2a184d87e6ebbc75906ea7c (diff) |
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
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/js_native_api_types.h')
-rw-r--r-- | src/js_native_api_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/js_native_api_types.h b/src/js_native_api_types.h index a4739957991..1f46729fc67 100644 --- a/src/js_native_api_types.h +++ b/src/js_native_api_types.h @@ -76,6 +76,7 @@ typedef enum { napi_queue_full, napi_closing, napi_bigint_expected, + napi_date_expected, } napi_status; typedef napi_value (*napi_callback)(napi_env env, |