diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /js/src/builtin/temporal/TemporalParser.h | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/builtin/temporal/TemporalParser.h')
-rw-r--r-- | js/src/builtin/temporal/TemporalParser.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/src/builtin/temporal/TemporalParser.h b/js/src/builtin/temporal/TemporalParser.h index 677a90b58d..86ac7bbd82 100644 --- a/js/src/builtin/temporal/TemporalParser.h +++ b/js/src/builtin/temporal/TemporalParser.h @@ -8,6 +8,7 @@ #define builtin_temporal_TemporalParser_h #include "mozilla/Assertions.h" +#include "mozilla/Attributes.h" #include <cstdlib> #include <stdint.h> @@ -26,7 +27,7 @@ struct PlainDate; struct PlainDateTime; struct PlainTime; -struct ParsedTimeZone { +struct MOZ_STACK_CLASS ParsedTimeZone final { JSLinearString* name = nullptr; int32_t offset = INT32_MIN; @@ -129,7 +130,7 @@ bool ParseTemporalDateTimeString(JSContext* cx, JS::Handle<JSString*> str, bool ParseTemporalZonedDateTimeString( JSContext* cx, JS::Handle<JSString*> str, PlainDateTime* dateTime, bool* isUTC, bool* hasOffset, int64_t* timeZoneOffset, - JS::MutableHandle<ParsedTimeZone> timeZoneName, + JS::MutableHandle<ParsedTimeZone> timeZoneAnnotation, JS::MutableHandle<JSString*> calendar); /** @@ -138,7 +139,7 @@ bool ParseTemporalZonedDateTimeString( bool ParseTemporalRelativeToString( JSContext* cx, JS::Handle<JSString*> str, PlainDateTime* dateTime, bool* isUTC, bool* hasOffset, int64_t* timeZoneOffset, - JS::MutableHandle<ParsedTimeZone> timeZoneName, + JS::MutableHandle<ParsedTimeZone> timeZoneAnnotation, JS::MutableHandle<JSString*> calendar); } /* namespace js::temporal */ |