Skip to content

Commit 940e5a1

Browse files
committed
minor tweaks
1 parent a7eaeb5 commit 940e5a1

File tree

1 file changed

+5
-4
lines changed
  • packages/svelte/src/reactivity

1 file changed

+5
-4
lines changed

packages/svelte/src/reactivity/set.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,16 @@ export class ReactiveSet extends Set {
4545
*/
4646
constructor(value) {
4747
super();
48-
if (DEV) {
49-
// If the value is invalid then the native exception will fire here
50-
new Set(value);
51-
}
48+
49+
// If the value is invalid then the native exception will fire here
50+
if (DEV) new Set(value);
51+
5252
if (value) {
5353
for (const element of value) {
5454
this.add(element);
5555
}
5656
}
57+
5758
this.#init();
5859
}
5960

0 commit comments

Comments
 (0)