Skip to content

Commit c10967e

Browse files
tcl3kalenikaliaksandr
authored andcommitted
newsletter: Fix typos in the JS optimization section
1 parent 3c8241d commit c10967e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/newsletters/2025-05-31.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ foo();
122122

123123
### JS optimization: faster iteration over built-in types
124124

125-
We've added new bytecode instruction that avoid creating temporary `{ done, value }` result objects when iterating over built-in types like `Array`, `Map`, `Set` and `String`. This means `for..of`, `for..in` and the spread operator now run with significantly less overhead.
125+
We've added new bytecode instruction that avoids creating temporary `{ done, value }` result objects when iterating over built-in types like `Array`, `Map`, `Set` and `String`. This means `for..of`, `for..in` and the spread operator now run with significantly less overhead.
126126

127-
We've also applied a similar optimization to `async` functions, which internally rely on generators, and made them faster as well by avoid temporary objects allocation.
127+
We've also applied a similar optimization to `async` functions, which internally rely on generators, and made them faster as well, by avoiding temporary object allocations.
128128

129129
Array element assignment now has a fast path. If objects in the array’s prototype chain haven’t been modified and the array is not a proxy, we skip the prototype lookup required for potential setters and instead write the value directly into the array’s storage.
130130

0 commit comments

Comments
 (0)