ladybird/Libraries/LibWasm/AbstractMachine
Jelle Raaijmakers ed94381209 LibWasm: Return canonical NaN for min/max/floor/ceil/truncate operations
Instead of returning whichever argument was NaN, return the canonical
NaN instead. The spec allows the old behavior:

  "Following the recommendation that operators propagate NaN payloads
   from their operands is permitted but not required."

But Chrome, Firefox and Safari do not propagate the operand payloads.

Fixes 448 WPT subtests in `wasm/core`.

Co-authored-by: Ali Mohammad Pur <ali.mpfard@gmail.com>
2025-07-27 15:35:28 +02:00
..
AbstractMachine.cpp LibWeb+LibWasm: Reject module instantiation with correct error type 2025-07-25 15:13:28 +02:00
AbstractMachine.h LibWeb+LibWasm: Reject module instantiation with correct error type 2025-07-25 15:13:28 +02:00
BytecodeInterpreter.cpp LibWasm: Quit early in memory_fill if store_to_memory traps 2025-05-22 07:35:58 +01:00
BytecodeInterpreter.h LibWasm: Validate indirect calls at runtime 2025-05-22 07:35:58 +01:00
Configuration.cpp LibWasm: Make traps hold on to externally-managed data 2025-04-22 08:43:46 -06:00
Configuration.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Interpreter.h LibWasm: Make traps hold on to externally-managed data 2025-04-22 08:43:46 -06:00
Operators.h LibWasm: Return canonical NaN for min/max/floor/ceil/truncate operations 2025-07-27 15:35:28 +02:00
Validator.cpp Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
Validator.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00