diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/AggregateErrorConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/AggregateErrorConstructor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/AggregateErrorConstructor.cpp b/Userland/Libraries/LibJS/Runtime/AggregateErrorConstructor.cpp index d70b0fa2db..540a2a567c 100644 --- a/Userland/Libraries/LibJS/Runtime/AggregateErrorConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/AggregateErrorConstructor.cpp @@ -53,7 +53,7 @@ ThrowCompletionOr<NonnullGCPtr<Object>> AggregateErrorConstructor::construct(Fun // 3. If message is not undefined, then if (!message.is_undefined()) { // a. Let msg be ? ToString(message). - auto msg = TRY(message.to_string(vm)); + auto msg = TRY(message.to_deprecated_string(vm)); // b. Perform CreateNonEnumerableDataPropertyOrThrow(O, "message", msg). aggregate_error->create_non_enumerable_data_property_or_throw(vm.names.message, PrimitiveString::create(vm, msg)); |