summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/VM.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Runtime/VM.h')
-rw-r--r--Libraries/LibJS/Runtime/VM.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/VM.h b/Libraries/LibJS/Runtime/VM.h
index 09d8cb3404..c7f95da39c 100644
--- a/Libraries/LibJS/Runtime/VM.h
+++ b/Libraries/LibJS/Runtime/VM.h
@@ -197,7 +197,7 @@ public:
template<typename T, typename... Args>
void throw_exception(GlobalObject& global_object, ErrorType type, Args&&... args)
{
- return throw_exception(global_object, T::create(global_object, String::format(type.message(), forward<Args>(args)...)));
+ return throw_exception(global_object, T::create(global_object, String::formatted(type.message(), forward<Args>(args)...)));
}
Value construct(Function&, Function& new_target, Optional<MarkedValueList> arguments, GlobalObject&);