| 2280 | |
| 2281 | #if NAPI_VERSION >= 7 |
| 2282 | inline bool ArrayBuffer::IsDetached() const { |
| 2283 | bool detached; |
| 2284 | napi_status status = napi_is_detached_arraybuffer(_env, _value, &detached); |
| 2285 | NAPI_THROW_IF_FAILED(_env, status, false); |
| 2286 | return detached; |
| 2287 | } |
| 2288 | |
| 2289 | inline void ArrayBuffer::Detach() { |
| 2290 | napi_status status = napi_detach_arraybuffer(_env, _value); |
no outgoing calls
no test coverage detected