diff --git a/Userland/Libraries/LibJS/Runtime/NumberConstructor.cpp b/Userland/Libraries/LibJS/Runtime/NumberConstructor.cpp index 14cd4d4e1f..ccc794e25d 100644 --- a/Userland/Libraries/LibJS/Runtime/NumberConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/NumberConstructor.cpp @@ -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::max()), 0); define_property(vm.names.MIN_VALUE, Value(NumericLimits::min()), 0);