diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-19 20:14:01 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-20 12:27:19 +0100 |
commit | 56e769e4ba0cc63684930dda6df8ab6fe5c98b33 (patch) | |
tree | 0a144d377338feab28a9235e9fc41b1dd2a8fbed /Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp | |
parent | ae9b52e387f959dc516ad0b526196f22fe8c7a47 (diff) | |
download | serenity-56e769e4ba0cc63684930dda6df8ab6fe5c98b33.zip |
LibJS: Replace usages of JS_{DECLARE, DEFINE}_NATIVE_GETTER
These macros are equivalent to JS_{DECLARE, DEFINE}_NATIVE_FUNCTION and
were only sometimes used, so let's just get rid of them altogether.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp b/Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp index 7ca4096e0c..3a71cae95f 100644 --- a/Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/PromiseConstructor.cpp @@ -409,7 +409,7 @@ JS_DEFINE_NATIVE_FUNCTION(PromiseConstructor::resolve) } // 27.2.4.8 get Promise [ @@species ], https://tc39.es/ecma262/#sec-get-promise-@@species -JS_DEFINE_NATIVE_GETTER(PromiseConstructor::symbol_species_getter) +JS_DEFINE_NATIVE_FUNCTION(PromiseConstructor::symbol_species_getter) { return vm.this_value(global_object); } |