summaryrefslogtreecommitdiffstats
path: root/js/src/builtin/temporal/TemporalParser.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /js/src/builtin/temporal/TemporalParser.h
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-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.h7
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 */