mirror of https://github.com/sveltejs/svelte
Under experimental.async, $bindable can surface Symbol(UNINITIALIZED). set_text previously passed symbols through and threw when setting nodeValue.pull/18650/head
parent
c0987c09f8
commit
fa226778b0
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: coerce symbols to empty string in `set_text`
|
||||||
|
|
||||||
|
Under `experimental.async`, `$bindable` props can briefly surface `Symbol(UNINITIALIZED)`.
|
||||||
|
`set_text` treated symbols as already-stringifiable values, then threw when assigning
|
||||||
|
`text.nodeValue = \`${str}\``. Treat symbols like nullish values so text nodes stay stable.
|
||||||
Loading…
Reference in new issue