mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 05:55:36 +02:00
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.
|
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
|
Verify that a final is-detached check is performed before the new instance is
|
||||||
returned.
|
returned.
|
||||||
|
includes: [detachArrayBuffer.js]
|
||||||
features: [Reflect.construct]
|
features: [Reflect.construct]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
@ -24,7 +25,7 @@ var byteOffset = { valueOf() { called = true; return 0; } };
|
|||||||
var newTarget = function() {}.bind(null);
|
var newTarget = function() {}.bind(null);
|
||||||
Object.defineProperty(newTarget, "prototype", {
|
Object.defineProperty(newTarget, "prototype", {
|
||||||
get() {
|
get() {
|
||||||
$262.detachArrayBuffer(buffer);
|
$DETACHBUFFER(buffer);
|
||||||
return DataView.prototype;
|
return DataView.prototype;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user