chore: add comment

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
pull/16232/head
Paolo Ricciuti 3 months ago committed by GitHub
parent 44bec4c8b1
commit 06ddc8cbb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -370,6 +370,9 @@ export function validate_mutation(node, context, expression) {
export function build_expression(context, expression, metadata, state = context.state) {
const value = /** @type {Expression} */ (context.visit(expression, state));
// Components not explicitly in legacy mode might be expected to be in runes mode (especially since we didn't
// adjust this behavior until recently, which broke people's existing components), so we also bail in this case.
// Kind of an in-between-mode.
if (context.state.analysis.runes || context.state.analysis.maybe_runes) {
return value;
}

Loading…
Cancel
Save