Apply suggestions from code review

inline-expression-fix
Rich Harris 8 hours ago committed by GitHub
parent 24bf1af832
commit 6ea44e0579
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2,4 +2,4 @@
'svelte': patch
---
fix: ensure inline object literals are correctly serialised
fix: treat property accesses of literals as pure

@ -184,6 +184,7 @@ export function is_pure(node, context) {
if (node.type !== 'Identifier' && node.type !== 'MemberExpression') {
return false;
}
if (node.type === 'MemberExpression' && node.object.type === 'Literal') {
return true;
}

Loading…
Cancel
Save