Skip to content

Commit

Permalink
ChainMap: Avoid a redundant internal weak map. (#30258)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycw authored Jan 3, 2025
1 parent 880d23e commit 8e6507f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderers/common/ChainMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class ChainMap {

let map = this.weakMap;

for ( let i = 0; i < keys.length; i ++ ) {
for ( let i = 0; i < keys.length - 1; i ++ ) {

map = map.get( keys[ i ] );

Expand All @@ -55,7 +55,7 @@ export default class ChainMap {

let map = this.weakMap;

for ( let i = 0; i < keys.length; i ++ ) {
for ( let i = 0; i < keys.length - 1; i ++ ) {

const key = keys[ i ];

Expand All @@ -81,7 +81,7 @@ export default class ChainMap {

let map = this.weakMap;

for ( let i = 0; i < keys.length; i ++ ) {
for ( let i = 0; i < keys.length - 1; i ++ ) {

map = map.get( keys[ i ] );

Expand Down

0 comments on commit 8e6507f

Please sign in to comment.