LibWeb: Implement window.location.port

This returns the port of the current document's URL. :^)
This commit is contained in:
Andreas Kling 2021-09-18 21:44:45 +02:00
commit 74b88a8156
Notes: sideshowbarker 2024-07-18 03:42:28 +09:00
2 changed files with 8 additions and 0 deletions

View file

@ -39,6 +39,7 @@ private:
JS_DECLARE_NATIVE_FUNCTION(hash_getter);
JS_DECLARE_NATIVE_FUNCTION(search_getter);
JS_DECLARE_NATIVE_FUNCTION(protocol_getter);
JS_DECLARE_NATIVE_FUNCTION(port_getter);
};
}