Skip to content

Commit da36864

Browse files
committed
drive-by
1 parent 57a59e2 commit da36864

File tree

1 file changed

+1
-6
lines changed
  • packages/svelte/src/compiler/phases/3-transform/client/visitors

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,7 @@ export function SnippetBlock(node, context) {
3434
if (!argument) continue;
3535

3636
if (argument.type === 'Identifier') {
37-
args.push({
38-
type: 'AssignmentPattern',
39-
left: argument,
40-
right: b.id('$.noop')
41-
});
42-
37+
args.push(b.assignment_pattern(argument, b.id('$.noop')));
4338
transform[argument.name] = { read: b.call };
4439

4540
continue;

0 commit comments

Comments
 (0)