1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:17:35 +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

@ -25,19 +25,19 @@ void LocationObject::initialize(JS::GlobalObject& global_object)
Object::initialize(global_object);
u8 attr = JS::Attribute::Writable | JS::Attribute::Enumerable;
define_native_accessor("href", href_getter, href_setter, attr);
define_native_accessor("host", host_getter, {}, attr);
define_native_accessor("hostname", hostname_getter, {}, attr);
define_native_accessor("pathname", pathname_getter, {}, attr);
define_native_accessor("hash", hash_getter, {}, attr);
define_native_accessor("search", search_getter, {}, attr);
define_native_accessor("protocol", protocol_getter, {}, attr);
define_native_accessor("port", port_getter, {}, attr);
define_old_native_accessor("href", href_getter, href_setter, attr);
define_old_native_accessor("host", host_getter, {}, attr);
define_old_native_accessor("hostname", hostname_getter, {}, attr);
define_old_native_accessor("pathname", pathname_getter, {}, attr);
define_old_native_accessor("hash", hash_getter, {}, attr);
define_old_native_accessor("search", search_getter, {}, attr);
define_old_native_accessor("protocol", protocol_getter, {}, attr);
define_old_native_accessor("port", port_getter, {}, attr);
define_native_function("reload", reload, 0, JS::Attribute::Enumerable);
define_native_function("replace", replace, 1, JS::Attribute::Enumerable);
define_old_native_function("reload", reload, 0, JS::Attribute::Enumerable);
define_old_native_function("replace", replace, 1, JS::Attribute::Enumerable);
define_native_function(vm.names.toString, href_getter, 0, JS::Attribute::Enumerable);
define_old_native_function(vm.names.toString, href_getter, 0, JS::Attribute::Enumerable);
}
LocationObject::~LocationObject()