mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +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) {
|
||||
throw new Test262Error("No method available to detach an ArrayBuffer");
|
||||
if (!$ || typeof $.detachArrayBuffer !== "function") {
|
||||
throw new Test262Error("No method available to detach an ArrayBuffer");
|
||||
}
|
||||
$.detachArrayBuffer(buffer);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user