Skip to content

Commit 0f8b945

Browse files
committed
address feedback
1 parent 6bb7be5 commit 0f8b945

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/javascript-runes.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,16 +315,17 @@ export const javascript_visitors_runes = {
315315
)
316316
);
317317
for (let i = 0; i < bindings.length; i++) {
318+
const binding = bindings[i];
318319
declarations.push(
319320
b.declarator(
320-
b.id(id + '_' + i),
321+
binding.node,
321322
b.call(
322323
'$.derived',
323324
b.thunk(b.member(b.call('$.get', b.id(id)), b.literal(i), true))
324325
)
325326
)
326327
);
327-
bindings[i].expression = b.call('$.get', b.id(id + '_' + i));
328+
binding.expression = b.call('$.get', binding.node);
328329
}
329330
}
330331
continue;

0 commit comments

Comments
 (0)