napi_is_detached_arraybuffer
functionv7js_native_api.hThe ArrayBuffer is considered detached if its internal data is null.
napi_status napi_is_detached_arraybuffer(napi_env env,
napi_value arraybuffer,
bool* result)
[in] env: The environment that the API is invoked under.[in] arraybuffer: The JavaScriptArrayBufferto be checked.[out] result: Whether thearraybufferis detached.
Returns napi_ok if the API succeeded.
The ArrayBuffer is considered detached if its internal data is null.
This API represents the invocation of the ArrayBuffer IsDetachedBuffer
operation as defined in Section isDetachedBuffer of the ECMAScript Language
Specification.