Skip to content

Commit 31d7141

Browse files
authored
test: run Temporal presence checks without V8 flag
Signed-off-by: Renegade334 <contact.9a5d6388@renegade334.me.uk> PR-URL: #63028 Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent fc192ee commit 31d7141

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

test/common/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const tmpdir = require('./tmpdir');
3535
const bits = ['arm64', 'loong64', 'mips', 'mipsel', 'ppc64', 'riscv64', 's390x', 'x64']
3636
.includes(process.arch) ? 64 : 32;
3737
const hasIntl = !!process.config.variables.v8_enable_i18n_support;
38+
const hasTemporal = !!process.config.variables.v8_enable_temporal_support;
3839

3940
// small-icu doesn't support non-English locales
4041
const hasFullICU = (() => {
@@ -980,6 +981,7 @@ const common = {
980981
getBufferSources,
981982
getTTYfd,
982983
hasIntl,
984+
hasTemporal,
983985
hasFullICU,
984986
hasCrypto,
985987
hasQuic,

test/common/index.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const {
2222
hasFFI,
2323
hasLocalStorage,
2424
hasIntl,
25+
hasTemporal,
2526
hasIPv6,
2627
isAIX,
2728
isAlive,
@@ -78,6 +79,7 @@ export {
7879
hasFFI,
7980
hasLocalStorage,
8081
hasIntl,
82+
hasTemporal,
8183
hasIPv6,
8284
isAIX,
8385
isAlive,

test/parallel/test-temporal-with-zoneinfo.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
// Flags: --harmony-temporal
2-
31
'use strict';
42
const common = require('../common');
53
const assert = require('assert');
64

7-
if (!process.config.variables.v8_enable_temporal_support) {
5+
if (!common.hasTemporal) {
86
common.skip('Temporal is not enabled');
97
}
108

test/parallel/test-temporal.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
// Flags: --harmony-temporal
2-
31
'use strict';
42
const common = require('../common');
53
const assert = require('assert');
64

7-
if (!process.config.variables.v8_enable_temporal_support) {
5+
if (!common.hasTemporal) {
86
common.skip('Temporal is not enabled');
97
}
108

0 commit comments

Comments
 (0)