You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/packages/svelte/tests/runtime-runes/samples/inspect-recursive-2/main.svelte

18 lines
237 B

<script>
class A {
constructor() {
this.a = this;
}
}
const state = $state(new A());
$inspect(state);
class B {
constructor() {
this.a = { b: this };
}
}
const state2 = $state(new B());
$inspect(state2);
</script>