mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibJS: Replace GlobalObject with VM in Date AOs [Part 14/19]
This commit is contained in:
@@ -218,7 +218,7 @@ ThrowCompletionOr<Object*> DateConstructor::construct(FunctionObject& new_target
|
||||
// b. If Type(value) is Object and value has a [[DateValue]] internal slot, then
|
||||
if (value.is_object() && is<Date>(value.as_object())) {
|
||||
// i. Let tv be ! thisTimeValue(value).
|
||||
time_value = MUST(this_time_value(global_object, value));
|
||||
time_value = MUST(this_time_value(vm, value));
|
||||
}
|
||||
// c. Else,
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user