Skip to content

Fix definition of GetOptionalListOfArrayIndexes#250

Merged
JSMonk merged 1 commit intotc39:mainfrom
JSMonk:fix-definition-of-GetOptionalListOfArrayIndexes
Mar 14, 2026
Merged

Fix definition of GetOptionalListOfArrayIndexes#250
JSMonk merged 1 commit intotc39:mainfrom
JSMonk:fix-definition-of-GetOptionalListOfArrayIndexes

Conversation

@JSMonk
Copy link
Copy Markdown
Member

@JSMonk JSMonk commented Mar 12, 2026

The subroutine GetOptionalListOfArrayIndexes is used for parsing ignoreList, which is provided as a [List](https://tc39.es/ecma262/#sec-list-and-record-specification-type) of non-negative [integers](https://tc39.es/ecma262/#integer) to the DecodeSourceMapSources subroutine.

However, inside the definition of the GetOptionalListOfArrayIndexes:

  • We don't accept +0𝔽, which means skipping of 0 index (condition on 5.a:
    1. If _item_ is an integral Number, _item_ ≠ *+0*<sub>𝔽</sub>, and _item_ ≥ *+0*<sub>𝔽</sub>, then
  • We do accept null as a valid value (operation 5.b.ii:
    1. Append *null* to _list_.

So, I believe it's a typo. Please, feel free to close if I'm wrong 🙏

@JSMonk JSMonk merged commit 6a9ca0d into tc39:main Mar 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants