summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug590036.js
blob: 25add41ff1bfc8fc5be7934c7c5b292d9b24917d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */

load(libdir + 'eqArrayHelper.js');

assertEqArray(eval('[]'), []);
assertEqArray(eval('[,]'), [,]);
assertEqArray(eval('[,,]'), [,,]);
assertEqArray(eval('[1, 1, ]'), [1,1, ]);
assertEqArray(eval('[1, 1, true]'), [1, 1, true]);
assertEqArray(eval('[1, false, true]'), [1, false, true]);