summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1355573.js
blob: f4ff4bfaa7b43155f68b9faefcefb67e18138f3f (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);