summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1355573.js
blob: ce2e34c4a1503738673283266149bf8485d12263 (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| skip-if: getBuildConfiguration("debug") === true
function f(){};
Object.defineProperty(f, "name", {value: "a".repeat((1<<30)-2)});
var ex = null;
try {
    len = f.bind().name.length;
} catch (e) {
    ex = e;
}
assertEq(ex === "out of memory" || (ex instanceof InternalError), true);