-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Description
Describe the bug
This component is broken:
<script>
export function get_name() {
return 'world';
}
// Comment this out and it works
await Promise.resolve();
</script>because it defines get_name inside the async function $$body, but calls $.pop in the actual component function. This causes a ReferenceError.
Reproduction
Logs
Uncaught ReferenceError: get_name is not defined
in <unknown>
in __wrapper.svelte
get get_name playground:output:4786
get playground:output:2591
App playground:output:4809System Info
svelte 5.38.2Severity
blocking an upgrade
Metadata
Metadata
Assignees
Labels
No labels