diff options
author | Linus Groh <mail@linusgroh.de> | 2022-04-06 23:56:57 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-07 12:58:39 +0100 |
commit | 151eb8606d38d4003ff43a6b829184ef9224fc67 (patch) | |
tree | 9eb9bf7f4486eaa281f597872d7d59b4aa026d6d /Userland/Libraries/LibJS/Runtime/Temporal/PlainTimeConstructor.cpp | |
parent | 85327e6b5d72434ccc6c8b3254cc1c44660362d3 (diff) | |
download | serenity-151eb8606d38d4003ff43a6b829184ef9224fc67.zip |
LibJS: Consistently call observable Temporal AOs with undefined options
This is a normative change in the Temporal spec.
See: https://github.com/tc39/proposal-temporal/commit/6fa5b9d
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/PlainTimeConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/PlainTimeConstructor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/PlainTimeConstructor.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/PlainTimeConstructor.cpp index ee346afc32..3c377d216a 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/PlainTimeConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/PlainTimeConstructor.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021, Linus Groh <linusg@serenityos.org> + * Copyright (c) 2021-2022, Linus Groh <linusg@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ @@ -85,7 +85,7 @@ JS_DEFINE_NATIVE_FUNCTION(PlainTimeConstructor::from) auto* options = TRY(get_options_object(global_object, vm.argument(1))); // 2. Let overflow be ? ToTemporalOverflow(options). - auto overflow = TRY(to_temporal_overflow(global_object, *options)); + auto overflow = TRY(to_temporal_overflow(global_object, options)); auto item = vm.argument(0); |