From 5ebd9e0b45afe070199900a6a98b03681a7cd038 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 29 Jan 2024 14:36:57 -0500 Subject: [PATCH] fix: disallow TODO errors (#10326) * disallow TODO errors * replace TODO errors * changeset --------- Co-authored-by: Rich Harris --- .changeset/lemon-geese-call.md | 5 +++++ packages/svelte/src/compiler/errors.js | 6 ++++-- packages/svelte/src/compiler/phases/1-parse/state/tag.js | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 .changeset/lemon-geese-call.md diff --git a/.changeset/lemon-geese-call.md b/.changeset/lemon-geese-call.md new file mode 100644 index 0000000000..8090d4512d --- /dev/null +++ b/.changeset/lemon-geese-call.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: replace TODO errors diff --git a/packages/svelte/src/compiler/errors.js b/packages/svelte/src/compiler/errors.js index 910f5fd651..98741e29f4 100644 --- a/packages/svelte/src/compiler/errors.js +++ b/packages/svelte/src/compiler/errors.js @@ -88,7 +88,9 @@ const parse = { 'illegal-subscription': () => `Cannot reference store value inside