mirror of
https://github.com/servo/servo
synced 2026-05-12 18:06:32 +02:00
This PR fixes the implementation of WebIDL clamp numeric conversions to match the behavior required by the WebIDL specification and [Firefox](https://searchfox.org/firefox-main/rev/aee7c0f24f488cd7f5a835803b48dd0c0cb2fd5f/dom/bindings/PrimitiveConversions.h#225-269). Testing: more test in tests/wpt/tests/FileAPI/blob/Blob-slice.any should pass. Fixes: #41638 mozjs PR: https://github.com/servo/mozjs/pull/694 --------- Signed-off-by: Taym Haddadi <haddadi.taym@gmail.com>