Skip to content

Commit 02f48a1

Browse files
Update packages/svelte/src/compiler/utils/ast.js
Co-authored-by: Simon H <[email protected]>
1 parent 2e22ac3 commit 02f48a1

File tree

1 file changed

+1
-0
lines changed
  • packages/svelte/src/compiler/utils

1 file changed

+1
-0
lines changed

packages/svelte/src/compiler/utils/ast.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ export function extract_identifiers_from_destructuring(node, nodes = []) {
235235

236236
/**
237237
* Extracts all destructured assignments from a pattern.
238+
* For each `id` in the returned `inserts`, make sure to adjust the `name`.
238239
* @param {ESTree.Node} param
239240
* @param {ESTree.Expression} initial
240241
* @returns {{ inserts: Array<{ id: ESTree.Identifier, value: ESTree.Expression }>, paths: DestructuredAssignment[] }}

0 commit comments

Comments
 (0)