From dd2dfc9fb15db7c9e32bfe26a37d3acae43cd492 Mon Sep 17 00:00:00 2001
From: Leo Balter <leonardo.balter@gmail.com>
Date: Thu, 15 Feb 2018 13:27:25 -0500
Subject: [PATCH] remove bogus checks

---
 .../set/typedarray-arg-set-values-diff-buffer-other-type.js   | 3 ---
 .../prototype/set/typedarray-arg-src-byteoffset-internal.js   | 3 ---
 .../set/typedarray-arg-target-byteoffset-internal.js          | 3 ---
 .../prototype/slice/set-values-from-different-ctor-type.js    | 3 ---
 .../toLocaleString/calls-tolocalestring-from-each-value.js    | 4 ----
 .../toLocaleString/calls-tostring-from-each-value.js          | 4 ----
 .../prototype/toLocaleString/calls-valueof-from-each-value.js | 4 ----
 .../return-abrupt-from-firstelement-tolocalestring.js         | 4 ----
 .../return-abrupt-from-firstelement-tostring.js               | 4 ----
 .../toLocaleString/return-abrupt-from-firstelement-valueof.js | 4 ----
 .../return-abrupt-from-nextelement-tolocalestring.js          | 4 ----
 .../toLocaleString/return-abrupt-from-nextelement-tostring.js | 4 ----
 .../toLocaleString/return-abrupt-from-nextelement-valueof.js  | 4 ----
 13 files changed, 48 deletions(-)

diff --git a/test/built-ins/TypedArray/prototype/set/typedarray-arg-set-values-diff-buffer-other-type.js b/test/built-ins/TypedArray/prototype/set/typedarray-arg-set-values-diff-buffer-other-type.js
index 4ba857e030..04ddb52371 100644
--- a/test/built-ins/TypedArray/prototype/set/typedarray-arg-set-values-diff-buffer-other-type.js
+++ b/test/built-ins/TypedArray/prototype/set/typedarray-arg-set-values-diff-buffer-other-type.js
@@ -28,9 +28,6 @@ features: [TypedArray]
 
 testWithTypedArrayConstructors(function(TA) {
   var other = TA === Float32Array ? Float64Array : Float32Array;
-  if (typeof BigInt !== "undefined")
-    other = TA === BigInt64Array ? BigUint64Array :
-            TA === BigUint64Array ? BigInt64Array : other;
   var src = new other([42, 43]);
   var sample, result;
 
diff --git a/test/built-ins/TypedArray/prototype/set/typedarray-arg-src-byteoffset-internal.js b/test/built-ins/TypedArray/prototype/set/typedarray-arg-src-byteoffset-internal.js
index 498ac5fc84..c3bfdeb28e 100644
--- a/test/built-ins/TypedArray/prototype/set/typedarray-arg-src-byteoffset-internal.js
+++ b/test/built-ins/TypedArray/prototype/set/typedarray-arg-src-byteoffset-internal.js
@@ -29,9 +29,6 @@ testWithTypedArrayConstructors(function(TA) {
   var sample = new TA(2);
   var src = new TA([42, 43]);
   var differentTA = TA === Uint8Array ? Int8Array : Uint8Array;
-  if (typeof BigInt !== "undefined")
-    differentTA = TA === BigInt64Array ? BigUint64Array :
-                  TA === BigUint64Array ? BigInt64Array : differentTA;
   var src2 = new differentTA([42, 43]);
   var src3 = new differentTA(sample.buffer, 0, 2);
 
diff --git a/test/built-ins/TypedArray/prototype/set/typedarray-arg-target-byteoffset-internal.js b/test/built-ins/TypedArray/prototype/set/typedarray-arg-target-byteoffset-internal.js
index ac5b8f6cb9..9e2802617a 100644
--- a/test/built-ins/TypedArray/prototype/set/typedarray-arg-target-byteoffset-internal.js
+++ b/test/built-ins/TypedArray/prototype/set/typedarray-arg-target-byteoffset-internal.js
@@ -30,9 +30,6 @@ testWithTypedArrayConstructors(function(TA) {
   var sample = new TA(2);
   var src = new TA([42, 43]);
   var differentTA = TA === Uint8Array ? Int8Array : Uint8Array;
-  if (typeof BigInt !== "undefined")
-    differentTA = TA === BigInt64Array ? BigUint64Array :
-                  TA === BigUint64Array ? BigInt64Array : differentTA;
   var src2 = new differentTA([42, 43]);
   var src3 = new differentTA(sample.buffer, 0, 2);
 
diff --git a/test/built-ins/TypedArray/prototype/slice/set-values-from-different-ctor-type.js b/test/built-ins/TypedArray/prototype/slice/set-values-from-different-ctor-type.js
index c0195b705b..cb19d311d2 100644
--- a/test/built-ins/TypedArray/prototype/slice/set-values-from-different-ctor-type.js
+++ b/test/built-ins/TypedArray/prototype/slice/set-values-from-different-ctor-type.js
@@ -35,9 +35,6 @@ var arr = [42, 43, 44];
 testWithTypedArrayConstructors(function(TA) {
   var sample = new TA(arr);
   var other = TA === Int8Array ? Uint8Array : Int8Array;
-  if (typeof BigInt !== "undefined") {
-    other = TA === BigInt64Array ? BigUint64Array :
-            TA === BigUint64Array ? BigInt64Array : other;
 
   sample.constructor = {};
   sample.constructor[Symbol.species] = other;
diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/calls-tolocalestring-from-each-value.js b/test/built-ins/TypedArray/prototype/toLocaleString/calls-tolocalestring-from-each-value.js
index ba9b112478..980670c721 100644
--- a/test/built-ins/TypedArray/prototype/toLocaleString/calls-tolocalestring-from-each-value.js
+++ b/test/built-ins/TypedArray/prototype/toLocaleString/calls-tolocalestring-from-each-value.js
@@ -39,10 +39,6 @@ Number.prototype.toLocaleString = function() {
   return "hacks" + calls.length;
 };
 
-if (typeof BigInt !== "undefined") {
-  BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
-}
-
 var arr = [42, 0];
 var expected = ["hacks1", "hacks2"].join(separator);
 
diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/calls-tostring-from-each-value.js b/test/built-ins/TypedArray/prototype/toLocaleString/calls-tostring-from-each-value.js
index befe997163..530ec10557 100644
--- a/test/built-ins/TypedArray/prototype/toLocaleString/calls-tostring-from-each-value.js
+++ b/test/built-ins/TypedArray/prototype/toLocaleString/calls-tostring-from-each-value.js
@@ -47,10 +47,6 @@ Number.prototype.toLocaleString = function() {
   };
 };
 
-if (typeof BigInt !== "undefined") {
-  BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
-}
-
 var arr = [42, 0];
 var expected = ["hacks1", "hacks2"].join(separator);
 
diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/calls-valueof-from-each-value.js b/test/built-ins/TypedArray/prototype/toLocaleString/calls-valueof-from-each-value.js
index 728aaf239e..328bbbf4e6 100644
--- a/test/built-ins/TypedArray/prototype/toLocaleString/calls-valueof-from-each-value.js
+++ b/test/built-ins/TypedArray/prototype/toLocaleString/calls-valueof-from-each-value.js
@@ -45,10 +45,6 @@ Number.prototype.toLocaleString = function() {
   };
 };
 
-if (typeof BigInt !== "undefined") {
-  BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
-}
-
 var arr = [42, 0];
 var expected = ["hacks1", "hacks2"].join(separator);
 
diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-firstelement-tolocalestring.js b/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-firstelement-tolocalestring.js
index 7f31b9c331..d934b70da4 100644
--- a/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-firstelement-tolocalestring.js
+++ b/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-firstelement-tolocalestring.js
@@ -31,10 +31,6 @@ Number.prototype.toLocaleString = function() {
   throw new Test262Error();
 };
 
-if (typeof BigInt !== "undefined") {
-  BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
-}
-
 var arr = [42, 0];
 
 testWithTypedArrayConstructors(function(TA, N) {
diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-firstelement-tostring.js b/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-firstelement-tostring.js
index 6abe3565db..394105ef3a 100644
--- a/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-firstelement-tostring.js
+++ b/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-firstelement-tostring.js
@@ -43,10 +43,6 @@ Number.prototype.toLocaleString = function() {
   };
 };
 
-if (typeof BigInt !== "undefined") {
-  BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
-}
-
 var arr = [42, 0];
 
 testWithTypedArrayConstructors(function(TA, N) {
diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-firstelement-valueof.js b/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-firstelement-valueof.js
index 424ec3a329..ae7e4169e2 100644
--- a/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-firstelement-valueof.js
+++ b/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-firstelement-valueof.js
@@ -44,10 +44,6 @@ Number.prototype.toLocaleString = function() {
   };
 };
 
-if (typeof BigInt !== "undefined") {
-  BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
-}
-
 var arr = [42, 0];
 
 testWithTypedArrayConstructors(function(TA, N) {
diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-nextelement-tolocalestring.js b/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-nextelement-tolocalestring.js
index 18e315c06b..49e02d09a4 100644
--- a/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-nextelement-tolocalestring.js
+++ b/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-nextelement-tolocalestring.js
@@ -34,10 +34,6 @@ Number.prototype.toLocaleString = function() {
   }
 };
 
-if (typeof BigInt !== "undefined") {
-  BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
-}
-
 var arr = [42, 0];
 
 testWithTypedArrayConstructors(function(TA, N) {
diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-nextelement-tostring.js b/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-nextelement-tostring.js
index 6bfca767bf..d872475c79 100644
--- a/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-nextelement-tostring.js
+++ b/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-nextelement-tostring.js
@@ -45,10 +45,6 @@ Number.prototype.toLocaleString = function() {
   };
 };
 
-if (typeof BigInt !== "undefined") {
-  BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
-}
-
 var arr = [42, 0];
 
 testWithTypedArrayConstructors(function(TA, N) {
diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-nextelement-valueof.js b/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-nextelement-valueof.js
index 0992a98485..7df9a09d4f 100644
--- a/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-nextelement-valueof.js
+++ b/test/built-ins/TypedArray/prototype/toLocaleString/return-abrupt-from-nextelement-valueof.js
@@ -46,10 +46,6 @@ Number.prototype.toLocaleString = function() {
   };
 };
 
-if (typeof BigInt !== "undefined") {
-  BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
-}
-
 var arr = [42, 0];
 
 testWithTypedArrayConstructors(function(TA, N) {
-- 
GitLab