Merge pull request #2518 from sveltejs/gh-2510

handle unknown nodes in extract_identifiers
pull/2558/head
Rich Harris 6 years ago committed by GitHub
commit c97ee00b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -106,7 +106,7 @@ export function extract_names(param: Node) {
export function extract_identifiers(param: Node) {
const nodes: Node[] = [];
extractors[param.type](nodes, param);
extractors[param.type] && extractors[param.type](nodes, param);
return nodes;
}

@ -0,0 +1,3 @@
export default {
html: `{"bar":42}`
};

@ -0,0 +1,7 @@
<script>
let foo = {};
let bar = 42;
$: foo.bar = bar;
</script>
{JSON.stringify(foo)}
Loading…
Cancel
Save