Debian Codegraph @

js/src/jit-test/tests/gc/bug-1144738.js

raw
1 // |jit-test| error: ReferenceError; --fuzzing-safe; --thread-count=1; --ion-eager
2 const ALL_TESTS = [
3 "CONTEXT_OBJECT_PROPERTY_DOT_REFERENCE_IS_FUNCTION",
4 ];
5 function r(keyword, tests) {
6 function Reserved(keyword, tests) {
7 this.keyword = keyword;
8 if (tests)
9 this.tests = tests;
10 else
11 this.tests = ALL_TESTS;
12 }
13 return new Reserved(keyword, tests);
14 }
15 for (var i = 2; i >= 0; i--) {
16 gc();
17 gczeal(14, 17);
18 [
19 r("break"),
20 r("case"),
21 r("catch"),
22 r("continue"),
23 ];
24 [
25 r("true"),
26 r("null"),
27 r("each"),
28 r("let")
29 ];
30 }
31 Failure;
32