mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 09:34:59 +00:00
LibJS: Use String::formatted() for throw_exception() message
This commit is contained in:
parent
a27668cbae
commit
f9eaac62d9
15 changed files with 64 additions and 64 deletions
|
@ -148,7 +148,7 @@ Value ScriptFunction::call()
|
|||
Value ScriptFunction::construct(Function&)
|
||||
{
|
||||
if (m_is_arrow_function) {
|
||||
vm().throw_exception<TypeError>(global_object(), ErrorType::NotAConstructor, m_name.characters());
|
||||
vm().throw_exception<TypeError>(global_object(), ErrorType::NotAConstructor, m_name);
|
||||
return {};
|
||||
}
|
||||
return call();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue