From 9de92ae4c14907bb3bd446ee27bf60f4ea8589bb Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 6 Jun 2020 07:36:38 +0100 Subject: [PATCH] LibWeb: Fix location.reload.length This was accidentally being set to JS::Attribute::Enumerable instead of 0. --- Libraries/LibWeb/Bindings/LocationObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/Bindings/LocationObject.cpp b/Libraries/LibWeb/Bindings/LocationObject.cpp index 8acce54dfa..7864f54efc 100644 --- a/Libraries/LibWeb/Bindings/LocationObject.cpp +++ b/Libraries/LibWeb/Bindings/LocationObject.cpp @@ -47,7 +47,7 @@ LocationObject::LocationObject() define_native_property("search", search_getter, nullptr, attr); define_native_property("protocol", protocol_getter, nullptr, attr); - define_native_function("reload", reload, JS::Attribute::Enumerable); + define_native_function("reload", reload, 0, JS::Attribute::Enumerable); } LocationObject::~LocationObject()