mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:07:45 +00:00
LibJS: Make the thisTimeValue AO public
It will be needed by the Date constructor.
This commit is contained in:
parent
a488ec1ad0
commit
d31e6b9391
2 changed files with 2 additions and 1 deletions
|
@ -109,7 +109,7 @@ DatePrototype::~DatePrototype()
|
||||||
}
|
}
|
||||||
|
|
||||||
// thisTimeValue ( value ), https://tc39.es/ecma262/#thistimevalue
|
// thisTimeValue ( value ), https://tc39.es/ecma262/#thistimevalue
|
||||||
static ThrowCompletionOr<Value> this_time_value(GlobalObject& global_object, Value value)
|
ThrowCompletionOr<Value> this_time_value(GlobalObject& global_object, Value value)
|
||||||
{
|
{
|
||||||
// 1. If Type(value) is Object and value has a [[DateValue]] internal slot, then
|
// 1. If Type(value) is Object and value has a [[DateValue]] internal slot, then
|
||||||
if (value.is_object() && is<Date>(value.as_object())) {
|
if (value.is_object() && is<Date>(value.as_object())) {
|
||||||
|
|
|
@ -64,6 +64,7 @@ private:
|
||||||
JS_DECLARE_NATIVE_FUNCTION(symbol_to_primitive);
|
JS_DECLARE_NATIVE_FUNCTION(symbol_to_primitive);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ThrowCompletionOr<Value> this_time_value(GlobalObject& global_object, Value value);
|
||||||
String time_string(double time);
|
String time_string(double time);
|
||||||
String date_string(double time);
|
String date_string(double time);
|
||||||
String time_zone_string(double time);
|
String time_zone_string(double time);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue