summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/TypedArray/indexOf-never-returns-negative-zero.js
blob: 72f83421567f10791f2898d5577b264a25ef379e (plain)
1
2
3
4
5
6
7
var ta = new Uint8Array(1);
ta[0] = 17;

assertEq(ta.indexOf(17, -0), +0);

if (typeof reportCompare === "function")
  reportCompare(true, true);