diff options
author | Linus Groh <mail@linusgroh.de> | 2021-06-13 00:59:33 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-13 00:59:33 +0100 |
commit | a40e5b579a0e2c99e57e72b07d5c944dbb4e5c0c (patch) | |
tree | 842e66ed78733feba2961bf0966f88d7d05bd606 | |
parent | 8d1e6e9175a7cc511fd836c9e85f6eadcc6dd650 (diff) | |
download | serenity-a40e5b579a0e2c99e57e72b07d5c944dbb4e5c0c.zip |
LibJS: Fix Number.parseFloat() attributes
This was missing an 'attr' and falling back to the default attributes.
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/NumberConstructor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<double>::max()), 0); define_property(vm.names.MIN_VALUE, Value(NumericLimits<double>::min()), 0); |