summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1851619.js
blob: 110bf302bd8a438e88a09593c9fd7657db3a76dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//  |jit-test| slow; exitstatus: 3
// Bug 1851619: Shouldn't crash.

// This test triggers a stack overflow, then calls a finalization registry
// cleanup callback that previously used data that had already been discarded.
enableShellAllocationMetadataBuilder();
var registry = new FinalizationRegistry(()=>{
});
registry.register({}, 1, {});
function recurse(obj) {
    recurse(obj);
}
recurse();