From cc866293013b6c700a21ef55de6d113209f83251 Mon Sep 17 00:00:00 2001
From: Valerie R Young <valerie@bocoup.com>
Date: Tue, 13 Mar 2018 15:23:39 -0400
Subject: [PATCH] BigInt: fix, make sure to correctly use different typedarray
 ctor

---
 .../typedarray-arg-set-values-diff-buffer-other-type-sab.js    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/typedarray-arg-set-values-diff-buffer-other-type-sab.js b/test/built-ins/TypedArray/prototype/set/BigInt/typedarray-arg-set-values-diff-buffer-other-type-sab.js
index 344aceeda0..3145bc8075 100644
--- a/test/built-ins/TypedArray/prototype/set/BigInt/typedarray-arg-set-values-diff-buffer-other-type-sab.js
+++ b/test/built-ins/TypedArray/prototype/set/BigInt/typedarray-arg-set-values-diff-buffer-other-type-sab.js
@@ -13,7 +13,8 @@ features: [BigInt, SharedArrayBuffer, TypedArray]
 
 testWithBigIntTypedArrayConstructors(function(TA) {
   var sab = new SharedArrayBuffer(2 * BigInt64Array.BYTES_PER_ELEMENT);
-  var src = new BigInt64Array(sab);
+  var otherCtor = TA === BigInt64Array ? BigUint64Array : BigInt64Array;
+  var src = new otherCtor(sab);
   src[0] = 42n;
   src[1] = 43n;
   var sample, result;
-- 
GitLab