Update packages/svelte/src/compiler/phases/scope.js

pull/15781/head
Rich Harris 1 year ago committed by GitHub
parent db4538df5e
commit c63cf040f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -345,12 +345,7 @@ class Evaluation {
case 'CallExpression':
{
const rune = get_rune(expression, scope);
if (
rune &&
scope.get(
object(/** @type {Identifier | MemberExpression} */ (expression.callee))?.name ?? ''
) === null
) {
if (rune) {
switch (rune) {
case '$state':
case '$state.raw':

Loading…
Cancel
Save