diff options
author | Linus Groh <mail@linusgroh.de> | 2020-05-19 21:48:18 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-20 08:30:22 +0200 |
commit | b69abb3626550d1d781e5e15ff20d0007ed5b62c (patch) | |
tree | d91ee95d23049a376308f9eac30b61bef52e9301 | |
parent | eb0810bf1acb810fa82ffc24cf853162c7822ea0 (diff) | |
download | serenity-b69abb3626550d1d781e5e15ff20d0007ed5b62c.zip |
LibWeb: Make window.location.reload() enumerable only
-rw-r--r-- | Libraries/LibWeb/Bindings/LocationObject.cpp | 2 |
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() |