Debian Codegraph @

js/src/jit-test/tests/cacheir/bug1423139.js

raw
1 var c = 0;
2 for (var i = 0; i < 5; i++) {
3 try {
4 Object.defineProperty([], "length", {
5 configurable: true,
6 enumerable: true,
7 writable: true,
8 value: 0
9 });
10 } catch (e) {
11 assertEq(e instanceof TypeError, true);
12 c++;
13 }
14 }
15 assertEq(c, i);