Skip to content

Commit

Permalink
Add integer entities for new Array methods
Browse files Browse the repository at this point in the history
While Array.prototype.flat technically can accept double values like Infinite, passing Integer.MAX_VALUE would be roughly the same, with no real loss in semantics.

Closes #167

PiperOrigin-RevId: 671603273
  • Loading branch information
niloc132 authored and copybara-github committed Sep 6, 2024
1 parent ef5d905 commit d827ee7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions java/elemental2/core/integer_entities.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ elemental2.core.Atomics.sub.index
elemental2.core.Atomics.wait.index
elemental2.core.Atomics.wake.index
elemental2.core.Atomics.xor.index
elemental2.core.JsArray.at.index
elemental2.core.JsArray.index
elemental2.core.JsArray.length
elemental2.core.JsArray.copyWithin.target
elemental2.core.JsArray.copyWithin.start
elemental2.core.JsArray.copyWithin.end
elemental2.core.JsArray.fill.begin
elemental2.core.JsArray.fill.end
elemental2.core.JsArray.flat.depth
elemental2.core.JsArray.findIndex
elemental2.core.JsArray.findLastIndex
elemental2.core.JsArray.includes.fromIndex
Expand Down Expand Up @@ -197,8 +199,10 @@ elemental2.core.JsString.substring.end
elemental2.core.JsMap.size
elemental2.core.JsRegExp.lastIndex
elemental2.core.JsSet.size
elemental2.core.ReadonlyArray.at.index
elemental2.core.ReadonlyArray.findIndex
elemental2.core.ReadonlyArray.findLastIndex
elemental2.core.ReadonlyArray.flat.depth
elemental2.core.ReadonlyArray.includes.fromIndex
elemental2.core.ReadonlyArray.indexOf
elemental2.core.ReadonlyArray.indexOf.fromIndex
Expand Down

0 comments on commit d827ee7

Please sign in to comment.