Skip to content

Commit 5b20f97

Browse files
committed
Continue if mapping is NOT-FOUND in range mapping update
1 parent e4912a3 commit 5b20f97

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

spec.emu

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,10 +1257,12 @@
12571257
<emu-alg>
12581258
1. For each Decoded Range Mapping Offset Record _rangeMappingOffset_ of _rangeMappingsOffsets_, do
12591259
1. Let _mapping_ be the result of FindMappingForRangeMappingOffset(_mappings_, _rangeMappingOffset_).
1260-
1. If _mapping_ is ~not-found~, optionally report an error.
1261-
1. If _mapping_.[[OriginalPosition]] is *null*, optionally report an error.
1262-
1. Assert: _mapping_.[[IsRangeMapping]] is *false*.
1263-
1. Set _mapping_.[[IsRangeMapping]] to *true*.
1260+
1. If _mapping_ is ~not-found~, then
1261+
1. Optionally report an error.
1262+
1. Else,
1263+
1. If _mapping_.[[OriginalPosition]] is *null*, optionally report an error.
1264+
1. Assert: _mapping_.[[IsRangeMapping]] is *false*.
1265+
1. Set _mapping_.[[IsRangeMapping]] to *true*.
12641266
</emu-alg>
12651267
</emu-clause>
12661268

0 commit comments

Comments
 (0)