Skip to content

Commit

Permalink
Fixed setAt boundary check.
Browse files Browse the repository at this point in the history
  • Loading branch information
g-zachar committed Jul 14, 2021
1 parent aae426e commit 3d4bef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree/ObjectList.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class ObjectList {
}

setAt(item, index) {
if (index >= 0 && index <= this._items.length) {
if (index >= 0 && index < this._items.length) {

if (Utils.isObjectLiteral(item)) {
const o = item;
Expand Down

0 comments on commit 3d4bef3

Please sign in to comment.