diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-05-08 22:36:38 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-08 21:02:47 +0200 |
commit | bd12f132f3ce3a9c73261535accbd95b1c7e5bc0 (patch) | |
tree | cd9adddddae547cc4b482e7b0d46b9fb5995c689 /Libraries | |
parent | 0901b1712645829b48ecd329c43c2f42fd61a879 (diff) | |
download | serenity-bd12f132f3ce3a9c73261535accbd95b1c7e5bc0.zip |
LibJS: Correct tiny issue with passing a String to String::format
I'm not sure how this even _builds_
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); |