summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Value.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-09-25 09:43:34 +0200
committerLinus Groh <mail@linusgroh.de>2021-09-25 17:51:30 +0200
commite14f420a44075aecf5c212ae61705e04f821cf38 (patch)
tree582bd7b2c3d0d364e23b149e0eca8bde3f309c6b /Userland/Libraries/LibJS/Runtime/Value.h
parent2dba0481469b56db97a923eef9db4d87950ca47c (diff)
downloadserenity-e14f420a44075aecf5c212ae61705e04f821cf38.zip
LibJS: Add const Value::as_function()
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Value.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Value.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Value.h b/Userland/Libraries/LibJS/Runtime/Value.h
index 626500d4e0..feef1475c2 100644
--- a/Userland/Libraries/LibJS/Runtime/Value.h
+++ b/Userland/Libraries/LibJS/Runtime/Value.h
@@ -240,6 +240,7 @@ public:
Array& as_array();
FunctionObject& as_function();
+ FunctionObject const& as_function() const;
i32 as_i32() const;
u32 as_u32() const;