summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testArrayConcat.js
blob: ec29e43536540a0a3d81b0cc76259b7f554d7bfd (plain)
1
2
3
4
5
6
7
8
9
10
var x = Array(4);
x[0] = 1;
x[1] = 2;
x[2] = 3;
var y = x.concat();
assertEq(y[3], undefined);

var z = x.concat(/abc/).pop();
assertEq(z.source, "abc");