mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04: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:
parent
ca27e5eff5
commit
40eb3a39d4
95 changed files with 755 additions and 755 deletions
|
@ -146,16 +146,16 @@ void AtomicsObject::initialize(GlobalObject& global_object)
|
|||
auto& vm = this->vm();
|
||||
|
||||
u8 attr = Attribute::Writable | Attribute::Configurable;
|
||||
define_native_function(vm.names.add, add, 3, attr);
|
||||
define_native_function(vm.names.and_, and_, 3, attr);
|
||||
define_native_function(vm.names.compareExchange, compare_exchange, 4, attr);
|
||||
define_native_function(vm.names.exchange, exchange, 3, attr);
|
||||
define_native_function(vm.names.isLockFree, is_lock_free, 1, attr);
|
||||
define_native_function(vm.names.load, load, 2, attr);
|
||||
define_native_function(vm.names.or_, or_, 3, attr);
|
||||
define_native_function(vm.names.store, store, 3, attr);
|
||||
define_native_function(vm.names.sub, sub, 3, attr);
|
||||
define_native_function(vm.names.xor_, xor_, 3, attr);
|
||||
define_old_native_function(vm.names.add, add, 3, attr);
|
||||
define_old_native_function(vm.names.and_, and_, 3, attr);
|
||||
define_old_native_function(vm.names.compareExchange, compare_exchange, 4, attr);
|
||||
define_old_native_function(vm.names.exchange, exchange, 3, attr);
|
||||
define_old_native_function(vm.names.isLockFree, is_lock_free, 1, attr);
|
||||
define_old_native_function(vm.names.load, load, 2, attr);
|
||||
define_old_native_function(vm.names.or_, or_, 3, attr);
|
||||
define_old_native_function(vm.names.store, store, 3, attr);
|
||||
define_old_native_function(vm.names.sub, sub, 3, attr);
|
||||
define_old_native_function(vm.names.xor_, xor_, 3, attr);
|
||||
|
||||
// 25.4.15 Atomics [ @@toStringTag ], https://tc39.es/ecma262/#sec-atomics-@@tostringtag
|
||||
define_direct_property(*vm.well_known_symbol_to_string_tag(), js_string(global_object.heap(), "Atomics"), Attribute::Configurable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue