From 1a11d6f324674622c9501c4dcb435d4e46af4f4b Mon Sep 17 00:00:00 2001 From: wuyangfan <1102042793@qq.com> Date: Wed, 13 Aug 2025 18:26:14 +0800 Subject: [PATCH] chore: fix typo in packages/reactivity/src/arrayInstrumentations.js --- packages/reactivity/src/arrayInstrumentations.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/reactivity/src/arrayInstrumentations.ts b/packages/reactivity/src/arrayInstrumentations.ts index e031df4fe10..5bb955bfedd 100644 --- a/packages/reactivity/src/arrayInstrumentations.ts +++ b/packages/reactivity/src/arrayInstrumentations.ts @@ -107,7 +107,7 @@ export const arrayInstrumentations: Record = { return reactiveReadArray(this).join(separator) }, - // keys() iterator only reads `length`, no optimisation required + // keys() iterator only reads `length`, no optimization required lastIndexOf(...args: unknown[]) { return searchProxy(this, 'lastIndexOf', args) @@ -200,7 +200,7 @@ function iterator( wrapValue: (value: any) => unknown, ) { // note that taking ARRAY_ITERATE dependency here is not strictly equivalent - // to calling iterate on the proxified array. + // to calling iterate on the proxied array. // creating the iterator does not access any array property: // it is only when .next() is called that length and indexes are accessed. // pushed to the extreme, an iterator could be created in one effect scope,