From: 吴杨帆 <39647285+leno23@users.noreply.github.com> Date: Thu, 21 Aug 2025 09:39:55 +0000 (+0800) Subject: chore: fix typo X-Git-Tag: v3.5.20~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cde15b07bfd869b0dd7278114d21e894f3d44a7f;p=thirdparty%2Fvuejs%2Fcore.git chore: fix typo --- diff --git a/packages/reactivity/src/arrayInstrumentations.ts b/packages/reactivity/src/arrayInstrumentations.ts index e031df4fe1..5bb955bfed 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,