mirror of https://github.com/sveltejs/svelte
fix: possible name clash in hoisted functions (#11237)
* fix: possible name clash in hoisted functions * chore: add testpull/11244/head
parent
cca67bba51
commit
eac4218402
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
fix: possible name clash in hoisted functions
|
@ -0,0 +1,9 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
compileOptions: {
|
||||
dev: true
|
||||
},
|
||||
recover: true,
|
||||
mode: ['client']
|
||||
});
|
@ -0,0 +1,11 @@
|
||||
<script lang="ts">
|
||||
import { writable } from 'svelte/store';
|
||||
const store = writable(0);
|
||||
|
||||
async function logStore() {
|
||||
console.log($store)
|
||||
store.set(100);
|
||||
}
|
||||
</script>
|
||||
|
||||
<button onclick={logStore}>Click me</button>
|
Loading…
Reference in new issue