From bd12f132f3ce3a9c73261535accbd95b1c7e5bc0 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Fri, 8 May 2020 22:36:38 +0430 Subject: [PATCH] LibJS: Correct tiny issue with passing a String to String::format I'm not sure how this even _builds_ --- Libraries/LibJS/AST.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);