summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Tuple/proto-override.js
blob: 4e0ac54a93eedfcae83a4a9694576275e947d1c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |reftest| skip-if(!this.hasOwnProperty("Tuple"))

//CHECK#1
Tuple.prototype.toString = Object.prototype.toString;
var x = Tuple();
assertEq(x.toString(), "[object Tuple]");

//CHECK#2
Tuple.prototype.toString = Object.prototype.toString;
var x = Tuple(0, 1, 2);
assertEq(x.toString(), "[object Tuple]");

reportCompare(0, 0);