summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/SetConstructor.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-10-20 01:40:40 +0300
committerLinus Groh <mail@linusgroh.de>2021-10-20 12:27:19 +0100
commit40eb3a39d41fe0c3242b586da9cf7e4ce2fcbf13 (patch)
treea2512e65916d2bebcb71c6dd07b11fb1929b17c8 /Userland/Libraries/LibJS/Runtime/SetConstructor.cpp
parentca27e5eff56ebdaf7f990296c6429f1b3afaa057 (diff)
downloadserenity-40eb3a39d41fe0c3242b586da9cf7e4ce2fcbf13.zip
LibJS: Rename define_native_function => define_old_native_function
This method will eventually be removed once all native functions are converted to ThrowCompletionOr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/SetConstructor.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/SetConstructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/SetConstructor.cpp b/Userland/Libraries/LibJS/Runtime/SetConstructor.cpp
index 719af0222e..fa10df35fc 100644
--- a/Userland/Libraries/LibJS/Runtime/SetConstructor.cpp
+++ b/Userland/Libraries/LibJS/Runtime/SetConstructor.cpp
@@ -26,7 +26,7 @@ void SetConstructor::initialize(GlobalObject& global_object)
// 24.2.2.1 Set.prototype, https://tc39.es/ecma262/#sec-set.prototype
define_direct_property(vm.names.prototype, global_object.set_prototype(), 0);
- define_native_accessor(*vm.well_known_symbol_species(), symbol_species_getter, {}, Attribute::Configurable);
+ define_old_native_accessor(*vm.well_known_symbol_species(), symbol_species_getter, {}, Attribute::Configurable);
define_direct_property(vm.names.length, Value(0), Attribute::Configurable);
}