Skip to content

Commit 5993938

Browse files
committed
better fix
1 parent 278873c commit 5993938

File tree

1 file changed

+3
-2
lines changed
  • packages/svelte/src/reactivity

1 file changed

+3
-2
lines changed

packages/svelte/src/reactivity/set.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ export class SvelteSet extends Set {
2626
super();
2727

2828
// If the value is invalid then the native exception will fire here
29-
// @ts-ignore
30-
if (DEV) value = new Set(Array.from(value));
29+
if (DEV) {
30+
value = new Set(value);
31+
}
3132

3233
if (value) {
3334
for (let element of value) {

0 commit comments

Comments
 (0)