summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Script.h
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2022-10-02 23:16:19 +0200
committerAndreas Kling <kling@serenityos.org>2022-10-06 16:41:36 +0200
commit5a3e079deb93eaf9dcd6f29563666d0bc4b2815f (patch)
tree42c7c3c7cb8010e7562cbd73c494ea37ff1df400 /Userland/Libraries/LibJS/Script.h
parentfb6de442c6f407aabcb0afaeea758a3d35062e3e (diff)
downloadserenity-5a3e079deb93eaf9dcd6f29563666d0bc4b2815f.zip
LibJS: Mark [[HostDefined]] accessor on scripts as const
Diffstat (limited to 'Userland/Libraries/LibJS/Script.h')
-rw-r--r--Userland/Libraries/LibJS/Script.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Script.h b/Userland/Libraries/LibJS/Script.h
index 7cc49f1b0f..492f7577e1 100644
--- a/Userland/Libraries/LibJS/Script.h
+++ b/Userland/Libraries/LibJS/Script.h
@@ -32,7 +32,7 @@ public:
Realm& realm() { return *m_realm; }
Program const& parse_node() const { return *m_parse_node; }
- HostDefined* host_defined() { return m_host_defined; }
+ HostDefined* host_defined() const { return m_host_defined; }
StringView filename() const { return m_filename; }
private: