diff options
Diffstat (limited to 'Libraries/LibJS/Cell.cpp')
-rw-r--r-- | Libraries/LibJS/Cell.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Libraries/LibJS/Cell.cpp b/Libraries/LibJS/Cell.cpp index 8e0744ea0b..d07f877e16 100644 --- a/Libraries/LibJS/Cell.cpp +++ b/Libraries/LibJS/Cell.cpp @@ -27,14 +27,15 @@ #include <AK/LogStream.h> #include <LibJS/Cell.h> #include <LibJS/Object.h> +#include <LibJS/PrimitiveString.h> #include <LibJS/Value.h> namespace JS { void Cell::Visitor::visit(Value value) { - if (value.is_object()) - visit(value.as_object()); + if (value.is_cell()) + visit(value.as_cell()); } const LogStream& operator<<(const LogStream& stream, const Cell* cell) |