Skip to content

Commit 351df61

Browse files
committed
Add locale part of the toString in the Date object
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
1 parent b414329 commit 351df61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jerry-core/ecma/builtin-objects/ecma-builtin-date-prototype.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ ecma_builtin_date_prototype_to_time_string (ecma_value_t this_arg) /**< this arg
299299
static ecma_completion_value_t
300300
ecma_builtin_date_prototype_to_locale_string (ecma_value_t this_arg) /**< this argument */
301301
{
302-
ECMA_BUILTIN_CP_UNIMPLEMENTED (this_arg);
302+
return ecma_builtin_date_prototype_to_string (this_arg);
303303
} /* ecma_builtin_date_prototype_to_locale_string */
304304

305305
/**
@@ -314,7 +314,7 @@ ecma_builtin_date_prototype_to_locale_string (ecma_value_t this_arg) /**< this a
314314
static ecma_completion_value_t
315315
ecma_builtin_date_prototype_to_locale_date_string (ecma_value_t this_arg) /**< this argument */
316316
{
317-
ECMA_BUILTIN_CP_UNIMPLEMENTED (this_arg);
317+
return ecma_builtin_date_prototype_to_date_string (this_arg);
318318
} /* ecma_builtin_date_prototype_to_locale_date_string */
319319

320320
/**
@@ -329,7 +329,7 @@ ecma_builtin_date_prototype_to_locale_date_string (ecma_value_t this_arg) /**< t
329329
static ecma_completion_value_t
330330
ecma_builtin_date_prototype_to_locale_time_string (ecma_value_t this_arg) /**< this argument */
331331
{
332-
ECMA_BUILTIN_CP_UNIMPLEMENTED (this_arg);
332+
return ecma_builtin_date_prototype_to_time_string (this_arg);
333333
} /* ecma_builtin_date_prototype_to_locale_time_string */
334334

335335
/**

0 commit comments

Comments
 (0)