mirror of
https://github.com/tc39/test262.git
synced 2025-12-08 06:19:48 +01:00
7 lines
203 B
JavaScript
7 lines
203 B
JavaScript
function $DETACHBUFFER(buffer) {
|
|
if (!$ || typeof $.detachArrayBuffer !== "function") {
|
|
throw new Test262Error("No method available to detach an ArrayBuffer");
|
|
}
|
|
$.detachArrayBuffer(buffer);
|
|
}
|