Skip to content

Commit

Permalink
In 7.3.1, step 5.d fix conditions for setting [[Content]]
Browse files Browse the repository at this point in the history
When using >=, the iteration goes too far and can look up a
missing sourcesContent entry. Instead use > to check the index.
  • Loading branch information
takikawa committed Mar 9, 2025
1 parent 86ac7b7 commit d720c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@
1. If _sourceURL_ is ~failure~, optionally report an error.
1. Else, set _decodedSource_.[[URL]] to _sourceURL_.
1. If _ignoredSources_ contains _index_, set _decodedSource_.[[Ignored]] to *true*.
1. If _sourcesContentCount_ ≥ _index_, set _decodedSource_.[[Content]] to _sourcesContent_[_index_].
1. If _sourcesContentCount_ > _index_, set _decodedSource_.[[Content]] to _sourcesContent_[_index_].
1. Append _decodedSource_ to _decodedSources_.
1. Return _decodedSources_.
</emu-alg>
Expand Down

0 comments on commit d720c71

Please sign in to comment.