summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-05-19 21:48:18 +0100
committerAndreas Kling <kling@serenityos.org>2020-05-20 08:30:22 +0200
commitb69abb3626550d1d781e5e15ff20d0007ed5b62c (patch)
treed91ee95d23049a376308f9eac30b61bef52e9301
parenteb0810bf1acb810fa82ffc24cf853162c7822ea0 (diff)
downloadserenity-b69abb3626550d1d781e5e15ff20d0007ed5b62c.zip
LibWeb: Make window.location.reload() enumerable only
-rw-r--r--Libraries/LibWeb/Bindings/LocationObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Bindings/LocationObject.cpp b/Libraries/LibWeb/Bindings/LocationObject.cpp
index cfdbdc2067..6a26c01b10 100644
--- a/Libraries/LibWeb/Bindings/LocationObject.cpp
+++ b/Libraries/LibWeb/Bindings/LocationObject.cpp
@@ -47,7 +47,7 @@ LocationObject::LocationObject()
put_native_property("search", search_getter, nullptr, attr);
put_native_property("protocol", protocol_getter, nullptr, attr);
- put_native_function("reload", reload);
+ put_native_function("reload", reload, JS::Attribute::Enumerable);
}
LocationObject::~LocationObject()