Debian Codegraph @

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

raw
1 // |jit-test| slow; exitstatus: 3
2 // Bug 1851619: Shouldn't crash.
3
4 // This test triggers a stack overflow, then calls a finalization registry
5 // cleanup callback that previously used data that had already been discarded.
6 enableShellAllocationMetadataBuilder();
7 var registry = new FinalizationRegistry(()=>{
8 });
9 registry.register({}, 1, {});
10 function recurse(obj) {
11 recurse(obj);
12 }
13 recurse();