BigInt: fix make buffer size BYTES_PER_ELEMENT

This commit is contained in:
Valerie R Young 2018-03-13 14:37:15 -04:00
parent a9827c945d
commit 07fdc340a4
2 changed files with 2 additions and 2 deletions

View File

@ -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);
});

View File

@ -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);
});