revert snapshot tests

pull/15820/head
Rich Harris 4 months ago
parent c536ec6f2b
commit fbf1b4e9fb

@ -5,11 +5,6 @@ export default function Class_state_field_constructor_assignment($$anchor, $$pro
$.push($$props, true); $.push($$props, true);
class Foo { class Foo {
constructor() {
this.a = 1;
$.set(this.#b, 2);
}
#a = $.state(); #a = $.state();
get a() { get a() {
@ -21,6 +16,11 @@ export default function Class_state_field_constructor_assignment($$anchor, $$pro
} }
#b = $.state(); #b = $.state();
constructor() {
this.a = 1;
$.set(this.#b, 2);
}
} }
$.pop(); $.pop();

@ -4,13 +4,13 @@ export default function Class_state_field_constructor_assignment($$payload, $$pr
$.push(); $.push();
class Foo { class Foo {
a;
#b;
constructor() { constructor() {
this.a = 1; this.a = 1;
this.#b = 2; this.#b = 2;
} }
a;
#b;
} }
$.pop(); $.pop();

Loading…
Cancel
Save