Skip to content

Commit 4f7d6a8

Browse files
authored
Update proxy.js
1 parent ff82b63 commit 4f7d6a8

File tree

1 file changed

+1
-4
lines changed
  • packages/svelte/src/internal/client

1 file changed

+1
-4
lines changed

packages/svelte/src/internal/client/proxy.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,7 @@ export function proxy(value) {
266266
// object property before writing to that property.
267267
if (s === undefined) {
268268
if (!has || get_descriptor(target, prop)?.writable) {
269-
s = with_parent(() => {
270-
var s = source(undefined, stack);
271-
return s;
272-
});
269+
s = with_parent(() => source(undefined, stack));
273270
set(s, proxy(value));
274271

275272
sources.set(prop, s);

0 commit comments

Comments
 (0)