Skip to content

Refactor indexing to display as 1-indexed#26

Merged
bvisness merged 1 commit intomozilla-spidermonkey:mainfrom
aidenfoxivey:fix-indexing
Dec 2, 2025
Merged

Refactor indexing to display as 1-indexed#26
bvisness merged 1 commit intomozilla-spidermonkey:mainfrom
aidenfoxivey:fix-indexing

Conversation

@aidenfoxivey
Copy link
Contributor

Internally, the function index is 0 indexed, but displays as being 1
indexed. This patch fixes that and also limits the funcIndex to be
within range of [1, numFunctions].

I noticed before that you could get the index to display as -1 or get
it to roll above the number of functions. This patch should fix that.

Internally, the function index is 0 indexed, but displays as being 1
indexed. This patch fixes that and also limits the funcIndex to be
within range of [1, numFunctions].
@bvisness bvisness merged commit 14a8a29 into mozilla-spidermonkey:main Dec 2, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants