File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
packages/svelte/src/compiler/phases/3-transform/client/visitors Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ export function SnippetBlock(node, context) {
28
28
const transform = { ...context . state . transform } ;
29
29
const child_state = { ...context . state , transform } ;
30
30
31
- let fallback_arr = [ ] ;
32
-
33
31
for ( let i = 0 ; i < node . parameters . length ; i ++ ) {
34
32
const argument = node . parameters [ i ] ;
35
33
@@ -55,9 +53,6 @@ export function SnippetBlock(node, context) {
55
53
for ( const path of paths ) {
56
54
const name = /** @type {Identifier } */ ( path . node ) . name ;
57
55
const needs_derived = path . has_default_value ; // to ensure that default value is only called once
58
- if ( needs_derived ) {
59
- fallback_arr . push ( i ) ;
60
- }
61
56
const fn = b . thunk (
62
57
/** @type {Expression } */ ( context . visit ( path . expression ?. ( b . maybe_call ( b . id ( arg_alias ) ) ) ) )
63
58
) ;
@@ -75,6 +70,7 @@ export function SnippetBlock(node, context) {
75
70
}
76
71
}
77
72
}
73
+
78
74
body = b . block ( [
79
75
...declarations ,
80
76
.../** @type {BlockStatement } */ ( context . visit ( node . body , child_state ) ) . body
You can’t perform that action at this time.
0 commit comments