summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Bindings/NavigatorObject.h
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-10-19 20:18:01 +0300
committerLinus Groh <mail@linusgroh.de>2021-10-20 12:27:19 +0100
commit20163c058485dc524402c46f21bbe65a860bf9c5 (patch)
tree35e6942b65f8138ee073efcec6dae987d9ab0377 /Userland/Libraries/LibWeb/Bindings/NavigatorObject.h
parent3355b52cca1e1a8478ea5dbbd193120af4c83ca6 (diff)
downloadserenity-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/LibWeb/Bindings/NavigatorObject.h')
-rw-r--r--Userland/Libraries/LibWeb/Bindings/NavigatorObject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/NavigatorObject.h b/Userland/Libraries/LibWeb/Bindings/NavigatorObject.h
index 3125d35a40..807483b2d3 100644
--- a/Userland/Libraries/LibWeb/Bindings/NavigatorObject.h
+++ b/Userland/Libraries/LibWeb/Bindings/NavigatorObject.h
@@ -21,8 +21,8 @@ public:
virtual ~NavigatorObject() override;
private:
- JS_DECLARE_NATIVE_FUNCTION(user_agent_getter);
- JS_DECLARE_NATIVE_FUNCTION(cookie_enabled_getter);
+ JS_DECLARE_OLD_NATIVE_FUNCTION(user_agent_getter);
+ JS_DECLARE_OLD_NATIVE_FUNCTION(cookie_enabled_getter);
};
}