mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
LibJS: Use String::formatted() for throw_exception() message
This commit is contained in:
parent
a27668cbae
commit
f9eaac62d9
Notes:
sideshowbarker
2024-07-19 02:04:05 +09:00
Author: https://github.com/linusg
Commit: f9eaac62d9
Pull-request: https://github.com/SerenityOS/serenity/pull/3681
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