1
Fork 0
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:
Linus Groh 2021-06-13 00:59:33 +01:00
parent 8d1e6e9175
commit a40e5b579a

View file

@ -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);