]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix lint
authorEvan You <yyx990803@gmail.com>
Thu, 30 May 2024 03:25:39 +0000 (11:25 +0800)
committerEvan You <yyx990803@gmail.com>
Thu, 30 May 2024 03:25:39 +0000 (11:25 +0800)
packages/reactivity/src/dep.ts
packages/runtime-core/src/scheduler.ts

index f4e4fd9719a25bfa03c4fa9bda43b6d53b6c692e..57d70f3eade8f0206d6aa2a9e2637f78d9449200 100644 (file)
@@ -329,5 +329,6 @@ export function trigger(
  * Test only
  */
 export function getDepFromReactive(object: any, key: string | number | symbol) {
+  // eslint-disable-next-line
   return targetMap.get(object)?.get(key)
 }
index e41b9e6a7cb1745e3a5470f0ee21e8b732e468bc..28ebef95eef073ddef97809aa293a723e78ef4ca 100644 (file)
@@ -98,7 +98,7 @@ export function queueJob(job: SchedulerJob) {
     } else if (
       // fast path when the job id is larger than the tail
       !(job.flags! & SchedulerJobFlags.PRE) &&
-      job.id >= (queue[queue.length - 1]?.id || 0)
+      job.id >= ((queue[queue.length - 1] && queue[queue.length - 1].id) || 0)
     ) {
       queue.push(job)
     } else {