mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibJS: Use the new math constants
Instead of evaluating their values at runtime.
This commit is contained in:
parent
a449a0b977
commit
31359e3ad2
Notes:
sideshowbarker
2024-07-19 06:10:53 +09:00
Author: https://github.com/bugaevc
Commit: 31359e3ad2
Pull-request: https://github.com/SerenityOS/serenity/pull/2362
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,8 @@ MathObject::MathObject()
|
||||||
put("LOG2E", Value(log2(M_E)), 0);
|
put("LOG2E", Value(log2(M_E)), 0);
|
||||||
put("LOG10E", Value(log10(M_E)), 0);
|
put("LOG10E", Value(log10(M_E)), 0);
|
||||||
put("PI", Value(M_PI), 0);
|
put("PI", Value(M_PI), 0);
|
||||||
put("SQRT1_2", Value(::sqrt(1.0 / 2.0)), 0);
|
put("SQRT1_2", Value(M_SQRT1_2), 0);
|
||||||
put("SQRT2", Value(::sqrt(2)), 0);
|
put("SQRT2", Value(M_SQRT2), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
MathObject::~MathObject()
|
MathObject::~MathObject()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue