diff options
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibJS/AST.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<const StringObject&>(value.as_object()).primitive_string().string()) iterables.append(Value(js_string(interpreter, String::format("%c", ch)))); } else { - interpreter.throw_exception<TypeError>(String::format("%s is not iterable", value.to_string())); + interpreter.throw_exception<TypeError>(String::format("%s is not iterable", value.to_string().characters())); } for (auto& value : iterables) arguments.append(value); |