summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Intl/NumberFormat/use-grouping-bool-string.js
blob: 4216c874f05730f68b90e6d06ff0f8e1ec5b4e39 (plain)
1
2
3
4
5
6
7
8
9
10
// |reftest| skip-if(!this.hasOwnProperty("Intl"))

let nf1 = new Intl.NumberFormat("en", {useGrouping: "true"});
assertEq(nf1.format(1000), "1,000");

let nf2 = new Intl.NumberFormat("en", {useGrouping: "false"});
assertEq(nf2.format(1000), "1,000");

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