mirror of https://github.com/tc39/test262.git
remove bogus checks
This commit is contained in:
parent
098c69540e
commit
dd2dfc9fb1
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue