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
/** * @param {number} a * @param {number} b */functionadd(a,b){returna+b;}leta=1;letb=2;lettotal=add(a,b);console.log(total);// 3a=3;b=4;console.log(total);// still 3!
Select TSand click Copy button will NOT work result :
What is this ??
console.log('hello world');// Prints: hello world, to stdoutconsole.log('hello %s','world');// Prints: hello world, to stdoutconsole.error(newError('Whoops, something bad happened'));// Prints error message and stack trace to stderr:// Error: Whoops, something bad happened// at [eval]:5:15// at Script.runInThisContext (node:vm:132:18)// at Object.runInThisContext (node:vm:309:38)// at node:internal/process/execution:77:19// at [eval]-wrapper:6:22// at evalScript (node:internal/process/execution:76:60)// at node:internal/main/eval_string:23:3constname='Will Robinson';console.warn(`Danger ${name}! Danger!`);// Prints: Danger Will Robinson! Danger!, to stderr
Describe the bug
Reproduction
go to https://svelte.dev/docs/svelte/$state#$state.snapshot
as:
Select JS and click Copy button will work result:
Select TSand click Copy button will NOT work result :
What is this ??
Logs
No response
System Info
Severity
blocking all usage of svelte
The text was updated successfully, but these errors were encountered: