diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-20 01:40:40 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-20 12:27:19 +0100 |
commit | 40eb3a39d41fe0c3242b586da9cf7e4ce2fcbf13 (patch) | |
tree | a2512e65916d2bebcb71c6dd07b11fb1929b17c8 /Userland/Libraries/LibJS/Runtime/ArrayConstructor.cpp | |
parent | ca27e5eff56ebdaf7f990296c6429f1b3afaa057 (diff) | |
download | serenity-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/ArrayConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ArrayConstructor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ArrayConstructor.cpp b/Userland/Libraries/LibJS/Runtime/ArrayConstructor.cpp index f50c2e207e..933b40001e 100644 --- a/Userland/Libraries/LibJS/Runtime/ArrayConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/ArrayConstructor.cpp @@ -34,12 +34,12 @@ void ArrayConstructor::initialize(GlobalObject& global_object) define_direct_property(vm.names.prototype, global_object.array_prototype(), 0); u8 attr = Attribute::Writable | Attribute::Configurable; - define_native_function(vm.names.from, from, 1, attr); - define_native_function(vm.names.isArray, is_array, 1, attr); - define_native_function(vm.names.of, of, 0, attr); + define_old_native_function(vm.names.from, from, 1, attr); + define_old_native_function(vm.names.isArray, is_array, 1, attr); + define_old_native_function(vm.names.of, of, 0, attr); // 23.1.2.5 get Array [ @@species ], https://tc39.es/ecma262/#sec-get-array-@@species - 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(1), Attribute::Configurable); } |