Update packages/svelte/src/compiler/phases/1-parse/state/tag.js

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
pull/10320/head
S. Elliott Johnson 10 months ago committed by GitHub
parent 381fd7b813
commit 36601effe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -295,7 +295,7 @@ function open(parser) {
// TODO: handle error
if (!snippet_expression.id) {
throw new Error();
error(snippet_expression, 'TODO', 'expected a snippet name');
}
// slice the `{#` off the beginning since it's already been eaten

Loading…
Cancel
Save