summaryrefslogtreecommitdiff
path: root/tests/specs/run/unstable_temporal_api_patch/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/run/unstable_temporal_api_patch/main.ts')
-rw-r--r--tests/specs/run/unstable_temporal_api_patch/main.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/specs/run/unstable_temporal_api_patch/main.ts b/tests/specs/run/unstable_temporal_api_patch/main.ts
new file mode 100644
index 000000000..6a4078053
--- /dev/null
+++ b/tests/specs/run/unstable_temporal_api_patch/main.ts
@@ -0,0 +1,11 @@
+console.log(Temporal.Now.timeZoneId());
+// @ts-expect-error: undefined check
+console.log(Temporal.Now.timeZone);
+
+const zoned = new Temporal.ZonedDateTime(0n, "UTC");
+console.log(zoned.calendarId);
+console.log(zoned.timeZoneId);
+// @ts-expect-error: undefined check
+console.log(zoned.calendar);
+// @ts-expect-error: undefined check
+console.log(zoned.timeZone);