Fix: $262.detachArrayBuffer -> $DETACHBUFFER

This commit is contained in:
Rick Waldron 2020-09-28 10:45:23 -04:00
parent c911f71888
commit f4a9af6587
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ info: |
that may detach the `ArrayBuffer` intended to underlie the fresh instance.
Verify that a final is-detached check is performed before the new instance is
returned.
includes: [detachArrayBuffer.js]
features: [Reflect.construct]
---*/
@ -24,7 +25,7 @@ var byteOffset = { valueOf() { called = true; return 0; } };
var newTarget = function() {}.bind(null);
Object.defineProperty(newTarget, "prototype", {
get() {
$262.detachArrayBuffer(buffer);
$DETACHBUFFER(buffer);
return DataView.prototype;
}
});