summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Value.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-25 18:39:01 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-25 18:39:01 +0200
commit0de954e86b64ff3e36c737d8e19cc6957de098c9 (patch)
tree8843aae51dfe96678eb1a672cb234129ef2a031d /Userland/Libraries/LibJS/Runtime/Value.h
parent789d20ebb7b0c7089c49ca1df549bba4aac78996 (diff)
downloadserenity-0de954e86b64ff3e36c737d8e19cc6957de098c9.zip
LibJS: Make Cell::Visitor::visit_impl() take a Cell&
Passing a null cell pointer is not supported.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Value.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Value.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Value.h b/Userland/Libraries/LibJS/Runtime/Value.h
index f4ca977faa..22b7b49282 100644
--- a/Userland/Libraries/LibJS/Runtime/Value.h
+++ b/Userland/Libraries/LibJS/Runtime/Value.h
@@ -330,7 +330,7 @@ inline Value js_negative_infinity()
inline void Cell::Visitor::visit(Value value)
{
if (value.is_cell())
- visit_impl(value.as_cell());
+ visit_impl(*value.as_cell());
}
Value greater_than(GlobalObject&, Value lhs, Value rhs);