mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
LibJS: Correct tiny issue with passing a String to String::format
I'm not sure how this even _builds_
This commit is contained in:
parent
0901b17126
commit
bd12f132f3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue