fix: addresses reactive Set bug in certain engines (#11120)

pull/11121/head
Dominic Gannaway 9 months ago committed by GitHub
parent 0cf2e98322
commit 1183984f68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"svelte": patch
---
fix: addresses reactive Set bug in certain engines

@ -47,10 +47,7 @@ export class ReactiveSet extends Set {
var proto = ReactiveSet.prototype; var proto = ReactiveSet.prototype;
var set_proto = Set.prototype; var set_proto = Set.prototype;
/** @type {string} */ for (const method of read_methods) {
var method;
for (method of read_methods) {
// @ts-ignore // @ts-ignore
proto[method] = function (...v) { proto[method] = function (...v) {
get(this.#version); get(this.#version);
@ -59,7 +56,7 @@ export class ReactiveSet extends Set {
}; };
} }
for (method of set_like_methods) { for (const method of set_like_methods) {
// @ts-ignore // @ts-ignore
proto[method] = function (...v) { proto[method] = function (...v) {
get(this.#version); get(this.#version);

Loading…
Cancel
Save