diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-19 20:18:01 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-20 12:27:19 +0100 |
commit | 20163c058485dc524402c46f21bbe65a860bf9c5 (patch) | |
tree | 35e6942b65f8138ee073efcec6dae987d9ab0377 /Userland/Libraries/LibJS/Runtime/GlobalObject.h | |
parent | 3355b52cca1e1a8478ea5dbbd193120af4c83ca6 (diff) | |
download | serenity-20163c058485dc524402c46f21bbe65a860bf9c5.zip |
LibJS: Add ThrowCompletionOr versions of the JS native function macros
The old versions were renamed to JS_DECLARE_OLD_NATIVE_FUNCTION and
JS_DEFINE_OLD_NATIVE_FUNCTION, and will be eventually removed once all
native functions were converted to the new format.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/GlobalObject.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/GlobalObject.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/GlobalObject.h b/Userland/Libraries/LibJS/Runtime/GlobalObject.h index 32387a0eef..e39bbe538c 100644 --- a/Userland/Libraries/LibJS/Runtime/GlobalObject.h +++ b/Userland/Libraries/LibJS/Runtime/GlobalObject.h @@ -76,18 +76,18 @@ protected: private: virtual bool is_global_object() const final { return true; } - JS_DECLARE_NATIVE_FUNCTION(gc); - JS_DECLARE_NATIVE_FUNCTION(is_nan); - JS_DECLARE_NATIVE_FUNCTION(is_finite); - JS_DECLARE_NATIVE_FUNCTION(parse_float); - JS_DECLARE_NATIVE_FUNCTION(parse_int); - JS_DECLARE_NATIVE_FUNCTION(eval); - JS_DECLARE_NATIVE_FUNCTION(encode_uri); - JS_DECLARE_NATIVE_FUNCTION(decode_uri); - JS_DECLARE_NATIVE_FUNCTION(encode_uri_component); - JS_DECLARE_NATIVE_FUNCTION(decode_uri_component); - JS_DECLARE_NATIVE_FUNCTION(escape); - JS_DECLARE_NATIVE_FUNCTION(unescape); + JS_DECLARE_OLD_NATIVE_FUNCTION(gc); + JS_DECLARE_OLD_NATIVE_FUNCTION(is_nan); + JS_DECLARE_OLD_NATIVE_FUNCTION(is_finite); + JS_DECLARE_OLD_NATIVE_FUNCTION(parse_float); + JS_DECLARE_OLD_NATIVE_FUNCTION(parse_int); + JS_DECLARE_OLD_NATIVE_FUNCTION(eval); + JS_DECLARE_OLD_NATIVE_FUNCTION(encode_uri); + JS_DECLARE_OLD_NATIVE_FUNCTION(decode_uri); + JS_DECLARE_OLD_NATIVE_FUNCTION(encode_uri_component); + JS_DECLARE_OLD_NATIVE_FUNCTION(decode_uri_component); + JS_DECLARE_OLD_NATIVE_FUNCTION(escape); + JS_DECLARE_OLD_NATIVE_FUNCTION(unescape); NonnullOwnPtr<Console> m_console; |