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:
parent
cbc4832a53
commit
33bfac23ef
Notes:
sideshowbarker
2024-07-17 22:09:47 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/LadybirdBrowser/ladybird/commit/33bfac23ef Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/483
1 changed files with 1 additions and 0 deletions
|
@ -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.)
|
||||
|
|
Loading…
Add table
Reference in a new issue