summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1506968.js
blob: 2dadb1ccdadce1b067e06ecdd76a84016dccaee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| skip-if: typeof Intl === 'undefined'
function f(a, b) {
    a.formatToParts();
    a.format();
}
var a = new Intl.NumberFormat();
f(a, []);
try {
    f();
} catch (e) {}
f(a, []);
try {
    f();
} catch (e) {}