LibJS: Implement Temporal.Now

This commit is contained in:
Timothy Flynn 2024-11-24 17:23:31 -05:00 committed by Andreas Kling
commit f2c19f96f8
Notes: github-actions[bot] 2024-11-25 12:33:55 +00:00
12 changed files with 252 additions and 0 deletions

View file

@ -15,6 +15,7 @@
#include <AK/RefCounted.h>
#include <AK/StackInfo.h>
#include <AK/Variant.h>
#include <LibCrypto/Forward.h>
#include <LibGC/Function.h>
#include <LibGC/Heap.h>
#include <LibGC/MarkedVector.h>
@ -287,6 +288,7 @@ public:
Function<ThrowCompletionOr<HandledByHost>(ArrayBuffer&, size_t)> host_resize_array_buffer;
Function<void(StringView)> host_unrecognized_date_string;
Function<ThrowCompletionOr<void>(Realm&, NonnullOwnPtr<ExecutionContext>, ShadowRealm&)> host_initialize_shadow_realm;
Function<Crypto::SignedBigInteger(Object const& global)> host_system_utc_epoch_nanoseconds;
Vector<StackTraceElement> stack_trace() const;