LibJS: Add support for Float16Array

Implements TC39 stage three proposal for Float16Arrays:
https://tc39.es/proposal-float16array
This commit is contained in:
rmg-x 2024-11-09 15:29:03 -06:00 committed by Andrew Kaster
commit ea20545853
Notes: github-actions[bot] 2024-11-10 21:49:20 +00:00
49 changed files with 133 additions and 8 deletions

View file

@ -223,6 +223,11 @@ public:
}
}
explicit Value(f16 value)
: Value(static_cast<double>(value))
{
}
// NOTE: A couple of integral types are excluded here:
// - i32 has its own dedicated Value constructor
// - i64 cannot safely be cast to a double