Files
node/test/parallel/test-temporal-with-zoneinfo.js
Antoine du Hamel afb8bcd70d test: skip test-temporal-with-zoneinfo on system-icu builds
Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/62754
Refs: https://github.com/nodejs/node/issues/62676
Reviewed-By: Xuguang Mei <meixuguang@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-04-17 11:29:42 +00:00

24 lines
836 B
JavaScript

// Flags: --harmony-temporal
'use strict';
const common = require('../common');
const assert = require('assert');
if (!process.config.variables.v8_enable_temporal_support) {
common.skip('Temporal is not enabled');
}
// TODO(legendecas): bundle zoneinfo data for small ICU and without ICU builds.
if (!common.hasFullICU) {
common.skip('Time zone support unavailable when not built with full ICU');
}
// TODO(aduh95): fix zoneinfo support with system-icu.
if (process.config.variables.icu_system) {
common.skip('Time zone support unavailable on --with-intl=system-icu builds');
}
// Use globalThis.Temporal to workaround linter complaints.
assert.strictEqual(typeof globalThis.Temporal, 'object');
const pdt = globalThis.Temporal.Instant.from('1969-07-20T20:17:00Z');
assert.strictEqual(pdt.toString(), '1969-07-20T20:17:00Z');