LibJS: Add missing ValueInlines.h include for Value::to_numeric

When compiling with `-O2 -g1` optimizations (as done in the main
Serenity build), no out-of-line definitions end up emitted for
`Value::to_numeric`, causing files that reference the function but don't
include the definition from `ValueInlines.h` to add an undefined
reference in LibJS.so.

(cherry picked from commit 85b7ce8c2f6daf0db80e801d7fb2503d070765ce)
This commit is contained in:
Daniel Bertalan 2024-07-07 11:01:52 +02:00 committed by Andreas Kling
parent cbc4832a53
commit 33bfac23ef
Notes: sideshowbarker 2024-07-17 22:09:47 +09:00

View file

@ -11,6 +11,7 @@
#include <LibJS/Runtime/GlobalObject.h>
#include <LibJS/Runtime/NumberConstructor.h>
#include <LibJS/Runtime/NumberObject.h>
#include <LibJS/Runtime/ValueInlines.h>
#if defined(AK_COMPILER_CLANG)
# define EPSILON_VALUE AK::exp2(-52.)