Skip to content

Commit 6cb0605

Browse files
committed
update comment
1 parent c3eb8b0 commit 6cb0605

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ const state_proxy_handler = {
200200
const metadata = target[STATE_SYMBOL];
201201
let s = metadata.s.get(prop);
202202

203-
// if we're reading a property in a reactive context, create a source,
204-
// but only if it's an own property and not a prototype property
203+
// create a source, but only if it's an own property and not a prototype property
205204
if (s === undefined && (!(prop in target) || get_descriptor(target, prop)?.writable)) {
206205
s = (metadata.i ? source : mutable_source)(proxy(target[prop], metadata.i, metadata.o));
207206
metadata.s.set(prop, s);

0 commit comments

Comments
 (0)