mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-08 16:12:23 +02:00
This removes some ambiguity about what the return value should be if the index is out of range. Previously, we would sometimes return a JS null, and other times a JS undefined. It will also let us fold together the checks for whether an index is a supported property index, followed by getting the value just afterwards. (cherry picked from commit c5c1a8fcc78af986e5dd1a1f0bef1223e458ed37)
9.5 KiB
9.5 KiB