summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/collections/Map-size.js
blob: 12cb6e7358ab79b537efce7775d67d0c05370a65 (plain)
1
2
3
4
5
6
// Each Map has its own size.

var m1 = new Map(), m2 = new Map();
m1.set("x", 3);
assertEq(m1.size, 1);
assertEq(m2.size, 0);