summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1263558.js
blob: 5a4d2df2ddc2d13adf6b513c5097a706aec9b970 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| skip-if: !hasFunction.oomTest

evalcx(`
    eval('\
        var appendToActual = function(s) {};\
        gczeal = function() {};\
        gcslice = function() {};\
        selectforgc = function() {};\
        if (!("verifyprebarriers" in this)) {\
            verifyprebarriers = function() {};\
        }\
    ');
    oomTest(() => eval('Array(..."")'));
    if ('Intl' in this)
        new Intl.NumberFormat().format(0);
`, newGlobal());