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) {
2828 const transform = { ...context . state . transform } ;
2929 const child_state = { ...context . state , transform } ;
3030
31- let fallback_arr = [ ] ;
32-
3331 for ( let i = 0 ; i < node . parameters . length ; i ++ ) {
3432 const argument = node . parameters [ i ] ;
3533
@@ -55,9 +53,6 @@ export function SnippetBlock(node, context) {
5553 for ( const path of paths ) {
5654 const name = /** @type {Identifier } */ ( path . node ) . name ;
5755 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- }
6156 const fn = b . thunk (
6257 /** @type {Expression } */ ( context . visit ( path . expression ?. ( b . maybe_call ( b . id ( arg_alias ) ) ) ) )
6358 ) ;
@@ -75,6 +70,7 @@ export function SnippetBlock(node, context) {
7570 }
7671 }
7772 }
73+
7874 body = b . block ( [
7975 ...declarations ,
8076 .../** @type {BlockStatement } */ ( context . visit ( node . body , child_state ) ) . body
You can’t perform that action at this time.
0 commit comments