mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
LibJS: Replace GlobalObject with VM in Date AOs [Part 14/19]
This commit is contained in:
parent
9930302efb
commit
f13f3f9fbe
Notes:
sideshowbarker
2024-07-17 07:53:43 +09:00
Author: https://github.com/linusg
Commit: f13f3f9fbe
Pull-request: https://github.com/SerenityOS/serenity/pull/14973
Reviewed-by: https://github.com/davidot ✅
3 changed files with 72 additions and 75 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue