Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
fix lastIndex spec/polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Mar 19, 2018
1 parent dcfb925 commit c5139f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ When the GetLastArrayIndex method is called, the following steps are taken:
Let O be ? ToObject(this value).
Let len be ? ToLength(? Get(O, "length")).
If len > 0, then
Return len.
Return len-1.
Return 0.
Note 1
Expand Down Expand Up @@ -113,7 +113,7 @@ Object.defineProperty(Array.prototype, 'lastIndex', {
let O = ToObject(this)
let len = ToLength(O.length)
if (len > 0) {
return len
return len - 1
}
return 0
},
Expand Down

0 comments on commit c5139f6

Please sign in to comment.