[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/detached [Back]  [Original]

ArrayBuffer.prototype.detached - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

ArrayBuffer.prototype.detached

Baseline 2024
Newly available

Since 2024 3, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

ArrayBuffer detached () .

In this article

detached undefined , . ArrayBuffer false. ArrayBuffer transferred true . .

detached

js
const buffer = new ArrayBuffer(8);
console.log(buffer.detached); // false
const newBuffer = buffer.transfer();
console.log(buffer.detached); // true
console.log(newBuffer.detached); // false

Specification
ECMAScript 2027 LanguageSpecification
# sec-get-arraybuffer.prototype.detached


Web Proxy Viewer  |  New URL  |  Original Page