mirror of https://github.com/tc39/test262.git
BigInt: fix make buffer size BYTES_PER_ELEMENT
This commit is contained in:
parent
a9827c945d
commit
07fdc340a4
|
@ -20,7 +20,7 @@ features: [BigInt, SharedArrayBuffer, TypedArray]
|
|||
---*/
|
||||
|
||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||
var buffer = new SharedArrayBuffer(4);
|
||||
var buffer = new SharedArrayBuffer(TA.BYTES_PER_ELEMENT);
|
||||
assert.throws(TypeError, function() {
|
||||
TA(buffer);
|
||||
});
|
||||
|
|
|
@ -19,7 +19,7 @@ features: [BigInt, TypedArray]
|
|||
---*/
|
||||
|
||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||
var buffer = new ArrayBuffer(4);
|
||||
var buffer = new ArrayBuffer(TA.BYTES_PER_ELEMENT);
|
||||
assert.throws(TypeError, function() {
|
||||
TA(buffer);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue