napi_get_undefined
napi_status napi_get_undefined(napi_env env, napi_value* result)
-
[in] env
:调用 API 的环境。¥
[in] env
: The environment that the API is invoked under. -
[out] result
:napi_value
代表 JavaScript Undefined 值。¥
[out] result
:napi_value
representing JavaScript Undefined value.
如果 API 成功,则返回 napi_ok
。
¥Returns napi_ok
if the API succeeded.
此 API 返回 Undefined 对象。
¥This API returns the Undefined object.