test262/harness/detachArrayBuffer.js

7 lines
203 B
JavaScript
Raw Normal View History

2016-03-17 22:16:38 +01:00
function $DETACHBUFFER(buffer) {
if (!$ || typeof $.detachArrayBuffer !== "function") {
throw new Test262Error("No method available to detach an ArrayBuffer");
}
$.detachArrayBuffer(buffer);
2016-03-17 22:16:38 +01:00
}