mirror of https://github.com/sveltejs/svelte
fix: skip Program comment nodes in migration to prevent crash (#18656)
Fixes #18304 The parent of a declaration could be the Program, on which HTML comments are added, which subsequently crashes the funciton. Ignore such comments. --------- Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>pull/18668/head
parent
9414eaa41b
commit
a5ea12ee93
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: ignore comments of Program node during migration script
|
||||||
Loading…
Reference in new issue