Merge branch 'main' into props-bindable

props-bindable
Simon Holthausen 9 months ago
commit ed670ebdd2

@ -0,0 +1,5 @@
---
"svelte": patch
---
fix: don't override instance methods during legacy class creation

@ -79,6 +79,7 @@ class Svelte4Component {
});
for (const key of Object.keys(this.#instance)) {
if (key === '$set' || key === '$destroy' || key === '$on') continue;
define_property(this, key, {
get() {
return this.#instance[key];

Loading…
Cancel
Save