mirror of
https://github.com/nodejs/node.git
synced 2025-05-03 11:41:22 +00:00

Add assertions that conversion and coercion N-APIs return appropriate error statuses when given `NULL`s for parameters they expect to not be `NULL`. For `napi_get_value_string_*` this also checks that it returns `napi_string_expected` when passed a `napi_value` not containing a string. PR-URL: https://github.com/nodejs/node/pull/34142 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
9 lines
259 B
C
9 lines
259 B
C
#ifndef TEST_JS_NATIVE_API_TEST_CONVERSIONS_TEST_NULL_H_
|
|
#define TEST_JS_NATIVE_API_TEST_CONVERSIONS_TEST_NULL_H_
|
|
|
|
#include <js_native_api.h>
|
|
|
|
void init_test_null(napi_env env, napi_value exports);
|
|
|
|
#endif // TEST_JS_NATIVE_API_TEST_CONVERSIONS_TEST_NULL_H_
|