Skip to content

Commit bb95f5a

Browse files
committed
lint fixes
1 parent 7f609ab commit bb95f5a

File tree

1 file changed

+2
-2
lines changed
  • packages/svelte/src/compiler/phases

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ class Evaluation {
616616
);
617617
if (fn && fn.async === false && !fn?.generator) {
618618
const analysis = evaluate_function(fn, binding); // typescript won't tell you if a function is pure or if it could throw, so we have to do this regardless of type annotations
619-
console.log({ fn, binding, analysis });
619+
// console.log({ fn, binding, analysis });
620620
if (!analysis.pure || !analysis.never_throws) {
621621
// if its not pure, or we don't know if it could throw, we can't use any constant return values from the evaluation, but we can check if its nullish
622622
this.values.add(NOT_NULL); // `NOT_NULL` doesn't have precedence over `UNKNOWN`, so if the value is nullish, this won't have precedence
@@ -1718,7 +1718,7 @@ function evaluate_function(fn, binding, stack = new Set(), [...seen_bindings] =
17181718
* - While currently all the globals we have are pure and error-free, that could change, so we shouldn't be too dependent on that in the future.
17191719
* Things like `JSON.stringify` and a *lot* of array methods are prime examples.
17201720
*/
1721-
1;
1721+
let thing;
17221722
const analysis = {
17231723
pure: true,
17241724
is_known: false,

0 commit comments

Comments
 (0)