Merge branch 'elliott/variadic-snippets' of github.com:sveltejs/svelte into elliott/variadic-snippets

pull/10320/head
S. Elliott Johnson 2 years ago
commit 7158321369

@ -290,12 +290,12 @@ function open(parser) {
// TODO: handle error // TODO: handle error
if (snippet_expression.type !== 'FunctionExpression') { if (snippet_expression.type !== 'FunctionExpression') {
throw new Error(); error(snippet_expression, 'TODO', 'expected a function expression');
} }
// TODO: handle error // TODO: handle error
if (!snippet_expression.id) { 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 // slice the `{#` off the beginning since it's already been eaten

Loading…
Cancel
Save