mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +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
Notes:
sideshowbarker
2024-07-19 06:52:45 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/bd12f132f3c Pull-request: https://github.com/SerenityOS/serenity/pull/2161
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
Reference in a new issue