remove bogus checks

This commit is contained in:
Leo Balter 2018-02-15 13:27:25 -05:00
parent 098c69540e
commit dd2dfc9fb1
13 changed files with 0 additions and 48 deletions

View File

@ -28,9 +28,6 @@ features: [TypedArray]
testWithTypedArrayConstructors(function(TA) { testWithTypedArrayConstructors(function(TA) {
var other = TA === Float32Array ? Float64Array : Float32Array; 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 src = new other([42, 43]);
var sample, result; var sample, result;

View File

@ -29,9 +29,6 @@ testWithTypedArrayConstructors(function(TA) {
var sample = new TA(2); var sample = new TA(2);
var src = new TA([42, 43]); var src = new TA([42, 43]);
var differentTA = TA === Uint8Array ? Int8Array : Uint8Array; 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 src2 = new differentTA([42, 43]);
var src3 = new differentTA(sample.buffer, 0, 2); var src3 = new differentTA(sample.buffer, 0, 2);

View File

@ -30,9 +30,6 @@ testWithTypedArrayConstructors(function(TA) {
var sample = new TA(2); var sample = new TA(2);
var src = new TA([42, 43]); var src = new TA([42, 43]);
var differentTA = TA === Uint8Array ? Int8Array : Uint8Array; 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 src2 = new differentTA([42, 43]);
var src3 = new differentTA(sample.buffer, 0, 2); var src3 = new differentTA(sample.buffer, 0, 2);

View File

@ -35,9 +35,6 @@ var arr = [42, 43, 44];
testWithTypedArrayConstructors(function(TA) { testWithTypedArrayConstructors(function(TA) {
var sample = new TA(arr); var sample = new TA(arr);
var other = TA === Int8Array ? Uint8Array : Int8Array; var other = TA === Int8Array ? Uint8Array : Int8Array;
if (typeof BigInt !== "undefined") {
other = TA === BigInt64Array ? BigUint64Array :
TA === BigUint64Array ? BigInt64Array : other;
sample.constructor = {}; sample.constructor = {};
sample.constructor[Symbol.species] = other; sample.constructor[Symbol.species] = other;

View File

@ -39,10 +39,6 @@ Number.prototype.toLocaleString = function() {
return "hacks" + calls.length; return "hacks" + calls.length;
}; };
if (typeof BigInt !== "undefined") {
BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
}
var arr = [42, 0]; var arr = [42, 0];
var expected = ["hacks1", "hacks2"].join(separator); var expected = ["hacks1", "hacks2"].join(separator);

View File

@ -47,10 +47,6 @@ Number.prototype.toLocaleString = function() {
}; };
}; };
if (typeof BigInt !== "undefined") {
BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
}
var arr = [42, 0]; var arr = [42, 0];
var expected = ["hacks1", "hacks2"].join(separator); var expected = ["hacks1", "hacks2"].join(separator);

View File

@ -45,10 +45,6 @@ Number.prototype.toLocaleString = function() {
}; };
}; };
if (typeof BigInt !== "undefined") {
BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
}
var arr = [42, 0]; var arr = [42, 0];
var expected = ["hacks1", "hacks2"].join(separator); var expected = ["hacks1", "hacks2"].join(separator);

View File

@ -31,10 +31,6 @@ Number.prototype.toLocaleString = function() {
throw new Test262Error(); throw new Test262Error();
}; };
if (typeof BigInt !== "undefined") {
BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
}
var arr = [42, 0]; var arr = [42, 0];
testWithTypedArrayConstructors(function(TA, N) { testWithTypedArrayConstructors(function(TA, N) {

View File

@ -43,10 +43,6 @@ Number.prototype.toLocaleString = function() {
}; };
}; };
if (typeof BigInt !== "undefined") {
BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
}
var arr = [42, 0]; var arr = [42, 0];
testWithTypedArrayConstructors(function(TA, N) { testWithTypedArrayConstructors(function(TA, N) {

View File

@ -44,10 +44,6 @@ Number.prototype.toLocaleString = function() {
}; };
}; };
if (typeof BigInt !== "undefined") {
BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
}
var arr = [42, 0]; var arr = [42, 0];
testWithTypedArrayConstructors(function(TA, N) { testWithTypedArrayConstructors(function(TA, N) {

View File

@ -34,10 +34,6 @@ Number.prototype.toLocaleString = function() {
} }
}; };
if (typeof BigInt !== "undefined") {
BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
}
var arr = [42, 0]; var arr = [42, 0];
testWithTypedArrayConstructors(function(TA, N) { testWithTypedArrayConstructors(function(TA, N) {

View File

@ -45,10 +45,6 @@ Number.prototype.toLocaleString = function() {
}; };
}; };
if (typeof BigInt !== "undefined") {
BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
}
var arr = [42, 0]; var arr = [42, 0];
testWithTypedArrayConstructors(function(TA, N) { testWithTypedArrayConstructors(function(TA, N) {

View File

@ -46,10 +46,6 @@ Number.prototype.toLocaleString = function() {
}; };
}; };
if (typeof BigInt !== "undefined") {
BigInt.prototype.toLocaleString = Number.prototype.toLocaleString;
}
var arr = [42, 0]; var arr = [42, 0];
testWithTypedArrayConstructors(function(TA, N) { testWithTypedArrayConstructors(function(TA, N) {