You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the {@debug ...} tag can't properly pull the primitive values into watcher's scope and as such, they end up being undefined, the same behavior is reflected in the console.log as part of debug where the variable is undefined as well.
However, standalone {console.log(...)} displays them correctly.
Screenshots
Environment
Chrome v74, Svelte v3.3.0
The text was updated successfully, but these errors were encountered:
The destructuring and console.log statements are not respecting whether the variables in question have been hoisted. In this case, Svelte recognizes that let kobzol = 5; can be hoisted to the top-level scope, but this isn't reflected in the code generated for @debug.
Minimal example
https://svelte.dev/repl/b2e23e4311244f6694ced9e116c249ca?version=3.3.0
Description
It seems that the
{@debug ...}
tag can't properly pull the primitive values into watcher's scope and as such, they end up being undefined, the same behavior is reflected in theconsole.log
as part of debug where the variable isundefined
as well.However, standalone
{console.log(...)}
displays them correctly.Screenshots
Environment
Chrome v74, Svelte v3.3.0
The text was updated successfully, but these errors were encountered: