Files
ladybird/Userland/Libraries/LibJS/Runtime/CanonicalIndex.h
Timothy Flynn d37d6b3479 LibJS: Protect CanonicalIndex against double-to-integer overflow
Explicitly disallow constructing a CanonicalIndex from a floating point
type without going through a factory method that will throw when the
provided index cannot fit in a u32.
2022-12-07 16:43:19 +00:00

1.3 KiB