mirror of
https://github.com/tc39/test262.git
synced 2025-06-10 17:10:39 +02:00
Fix test for TypedArray(length)
Fixes gh-694
This commit is contained in:
parent
6497c1f5cc
commit
09be4da196
@ -16,18 +16,6 @@ info: >
|
|||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var obj1 = {
|
|
||||||
valueOf: function() {
|
|
||||||
return 3;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
var obj2 = {
|
|
||||||
toString: function() {
|
|
||||||
return 4;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
var items = [
|
var items = [
|
||||||
[-0, 0, "-0"],
|
[-0, 0, "-0"],
|
||||||
["", 0, "the Empty string"],
|
["", 0, "the Empty string"],
|
||||||
@ -43,9 +31,7 @@ var items = [
|
|||||||
[1.1, 1, "1.1"],
|
[1.1, 1, "1.1"],
|
||||||
[1.9, 1, "1.9"],
|
[1.9, 1, "1.9"],
|
||||||
[-0.1, 0, "-0.1"],
|
[-0.1, 0, "-0.1"],
|
||||||
[-0.99999, 0, "-0.99999"],
|
[-0.99999, 0, "-0.99999"]
|
||||||
[obj1, 3, "object's valueOf"],
|
|
||||||
[obj2, 4, "object's toString"]
|
|
||||||
];
|
];
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user