Debian Codegraph @

js/src/jit-test/tests/basic/bug1355573.js

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