1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

LibJS: Rename define_native_function => define_old_native_function

This method will eventually be removed once all native functions are
converted to ThrowCompletionOr
This commit is contained in:
Idan Horowitz 2021-10-20 01:40:40 +03:00 committed by Linus Groh
parent ca27e5eff5
commit 40eb3a39d4
95 changed files with 755 additions and 755 deletions

View file

@ -31,28 +31,28 @@ void ObjectConstructor::initialize(GlobalObject& global_object)
define_direct_property(vm.names.prototype, global_object.object_prototype(), 0);
u8 attr = Attribute::Writable | Attribute::Configurable;
define_native_function(vm.names.defineProperty, define_property, 3, attr);
define_native_function(vm.names.defineProperties, define_properties, 2, attr);
define_native_function(vm.names.is, is, 2, attr);
define_native_function(vm.names.getOwnPropertyDescriptor, get_own_property_descriptor, 2, attr);
define_native_function(vm.names.getOwnPropertyDescriptors, get_own_property_descriptors, 1, attr);
define_native_function(vm.names.getOwnPropertyNames, get_own_property_names, 1, attr);
define_native_function(vm.names.getOwnPropertySymbols, get_own_property_symbols, 1, attr);
define_native_function(vm.names.getPrototypeOf, get_prototype_of, 1, attr);
define_native_function(vm.names.setPrototypeOf, set_prototype_of, 2, attr);
define_native_function(vm.names.isExtensible, is_extensible, 1, attr);
define_native_function(vm.names.isFrozen, is_frozen, 1, attr);
define_native_function(vm.names.isSealed, is_sealed, 1, attr);
define_native_function(vm.names.preventExtensions, prevent_extensions, 1, attr);
define_native_function(vm.names.freeze, freeze, 1, attr);
define_native_function(vm.names.fromEntries, from_entries, 1, attr);
define_native_function(vm.names.seal, seal, 1, attr);
define_native_function(vm.names.keys, keys, 1, attr);
define_native_function(vm.names.values, values, 1, attr);
define_native_function(vm.names.entries, entries, 1, attr);
define_native_function(vm.names.create, create, 2, attr);
define_native_function(vm.names.hasOwn, has_own, 2, attr);
define_native_function(vm.names.assign, assign, 2, attr);
define_old_native_function(vm.names.defineProperty, define_property, 3, attr);
define_old_native_function(vm.names.defineProperties, define_properties, 2, attr);
define_old_native_function(vm.names.is, is, 2, attr);
define_old_native_function(vm.names.getOwnPropertyDescriptor, get_own_property_descriptor, 2, attr);
define_old_native_function(vm.names.getOwnPropertyDescriptors, get_own_property_descriptors, 1, attr);
define_old_native_function(vm.names.getOwnPropertyNames, get_own_property_names, 1, attr);
define_old_native_function(vm.names.getOwnPropertySymbols, get_own_property_symbols, 1, attr);
define_old_native_function(vm.names.getPrototypeOf, get_prototype_of, 1, attr);
define_old_native_function(vm.names.setPrototypeOf, set_prototype_of, 2, attr);
define_old_native_function(vm.names.isExtensible, is_extensible, 1, attr);
define_old_native_function(vm.names.isFrozen, is_frozen, 1, attr);
define_old_native_function(vm.names.isSealed, is_sealed, 1, attr);
define_old_native_function(vm.names.preventExtensions, prevent_extensions, 1, attr);
define_old_native_function(vm.names.freeze, freeze, 1, attr);
define_old_native_function(vm.names.fromEntries, from_entries, 1, attr);
define_old_native_function(vm.names.seal, seal, 1, attr);
define_old_native_function(vm.names.keys, keys, 1, attr);
define_old_native_function(vm.names.values, values, 1, attr);
define_old_native_function(vm.names.entries, entries, 1, attr);
define_old_native_function(vm.names.create, create, 2, attr);
define_old_native_function(vm.names.hasOwn, has_own, 2, attr);
define_old_native_function(vm.names.assign, assign, 2, attr);
define_direct_property(vm.names.length, Value(1), Attribute::Configurable);
}