mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
LibJS: Add Number.parseFloat()
This commit is contained in:
parent
6f6b089aa0
commit
73eef31f49
4 changed files with 14 additions and 1 deletions
|
@ -45,7 +45,7 @@ NumberConstructor::NumberConstructor()
|
|||
put_native_function("isInteger", is_integer, 1, attr);
|
||||
put_native_function("isNaN", is_nan, 1, attr);
|
||||
put_native_function("isSafeInteger", is_safe_integer, 1, attr);
|
||||
|
||||
put("parseFloat", interpreter().global_object().get("parseFloat"));
|
||||
put("prototype", interpreter().global_object().number_prototype(), 0);
|
||||
put("length", Value(1), Attribute::Configurable);
|
||||
put("EPSILON", Value(EPSILON), 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue