From 2f531a48456248245f1ffe22958d03830b3315b4 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 5 Jul 2025 13:50:37 -0400 Subject: [PATCH] add comment --- packages/svelte/src/compiler/phases/scope.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/svelte/src/compiler/phases/scope.js b/packages/svelte/src/compiler/phases/scope.js index 5f15a37fab..3f0e93361e 100644 --- a/packages/svelte/src/compiler/phases/scope.js +++ b/packages/svelte/src/compiler/phases/scope.js @@ -941,6 +941,7 @@ export function create_scopes(ast, root, allow_reactive_declarations, parent) { // automatically opt into runes mode on encountering // blocking awaits, without doing an additional walk // before the analysis occurs + // TODO remove this in Svelte 7.0 or whenever we get rid of legacy support has_await ||= context.path.every( ({ type }) => type !== 'ArrowFunctionExpression' &&