mirror of https://github.com/tc39/test262.git
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…
Reference in New Issue