summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/napi/js_native_api.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/cli/napi/js_native_api.rs b/cli/napi/js_native_api.rs
index 32f4b787e..07b583beb 100644
--- a/cli/napi/js_native_api.rs
+++ b/cli/napi/js_native_api.rs
@@ -1798,9 +1798,7 @@ fn napi_is_detached_arraybuffer(
) -> Result {
let value = transmute::<napi_value, v8::Local<v8::Value>>(value);
let _ab = v8::Local::<v8::ArrayBuffer>::try_from(value).unwrap();
- // TODO: what is API for checking if ArrayBuffer is detached?
- // there's only is_detachable I could find.
- *result = false;
+ *result = _ab.was_detached();
Ok(())
}