mirror of https://github.com/tc39/test262.git
Fix: $262.detachArrayBuffer -> $DETACHBUFFER
This commit is contained in:
parent
c911f71888
commit
f4a9af6587
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue