mirror of
https://github.com/tc39/test262.git
synced 2025-07-20 20:44:43 +02:00
use $.detachArrayBuffer API instead of throwing (#795)
This commit is contained in:
parent
3ed2c78600
commit
abf6489b29
@ -1,3 +1,6 @@
|
|||||||
function $DETACHBUFFER(buffer) {
|
function $DETACHBUFFER(buffer) {
|
||||||
|
if (!$ || typeof $.detachArrayBuffer !== "function") {
|
||||||
throw new Test262Error("No method available to detach an ArrayBuffer");
|
throw new Test262Error("No method available to detach an ArrayBuffer");
|
||||||
}
|
}
|
||||||
|
$.detachArrayBuffer(buffer);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user