diff --git a/Libraries/LibJS/AST.cpp b/Libraries/LibJS/AST.cpp index 58c797d648..aed07b0f94 100644 --- a/Libraries/LibJS/AST.cpp +++ b/Libraries/LibJS/AST.cpp @@ -151,7 +151,7 @@ Value CallExpression::execute(Interpreter& interpreter) const for (auto ch : static_cast(value.as_object()).primitive_string().string()) iterables.append(Value(js_string(interpreter, String::format("%c", ch)))); } else { - interpreter.throw_exception(String::format("%s is not iterable", value.to_string())); + interpreter.throw_exception(String::format("%s is not iterable", value.to_string().characters())); } for (auto& value : iterables) arguments.append(value);