mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 05:48:12 +00:00
LibJS: Fix Number.parseFloat() attributes
This was missing an 'attr' and falling back to the default attributes.
This commit is contained in:
parent
8d1e6e9175
commit
a40e5b579a
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ void NumberConstructor::initialize(GlobalObject& global_object)
|
|||
define_native_function(vm.names.isInteger, is_integer, 1, attr);
|
||||
define_native_function(vm.names.isNaN, is_nan, 1, attr);
|
||||
define_native_function(vm.names.isSafeInteger, is_safe_integer, 1, attr);
|
||||
define_property(vm.names.parseFloat, global_object.get(vm.names.parseFloat));
|
||||
define_property(vm.names.parseFloat, global_object.get(vm.names.parseFloat), attr);
|
||||
define_property(vm.names.EPSILON, Value(EPSILON_VALUE), 0);
|
||||
define_property(vm.names.MAX_VALUE, Value(NumericLimits<double>::max()), 0);
|
||||
define_property(vm.names.MIN_VALUE, Value(NumericLimits<double>::min()), 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue