1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:07:34 +00:00

LibJS: Replace GlobalObject with VM in Date AOs [Part 14/19]

This commit is contained in:
Linus Groh 2022-08-21 17:45:18 +01:00
parent 9930302efb
commit f13f3f9fbe
3 changed files with 72 additions and 75 deletions

View file

@ -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 {