summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/reflect-parse/stackOverflow.js
blob: 5fadbde4d8f987c68f81d812d08d8848883cfccf (plain)
1
2
3
4
5
6
7
8
// |reftest| skip-if(!xulRuntime.shell)
// Bug 632024: no crashing on stack overflow
try {
    Reflect.parse(Array(3000).join("x + y - ") + "z")
} catch (e) { }

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