summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/DateConstructor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/DateConstructor.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/DateConstructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/DateConstructor.cpp b/Userland/Libraries/LibJS/Runtime/DateConstructor.cpp
index 7a8ac037a1..5e5a00a991 100644
--- a/Userland/Libraries/LibJS/Runtime/DateConstructor.cpp
+++ b/Userland/Libraries/LibJS/Runtime/DateConstructor.cpp
@@ -239,7 +239,7 @@ ThrowCompletionOr<Object*> DateConstructor::construct(FunctionObject& new_target
if (primitive.is_string()) {
// 1. Assert: The next step never returns an abrupt completion because Type(v) is String.
// 2. Let tv be the result of parsing v as a date, in exactly the same manner as for the parse method (21.4.3.2).
- time_value = parse_date_string(primitive.as_string().string());
+ time_value = parse_date_string(primitive.as_string().deprecated_string());
}
// iii. Else,
else {