Skip to content

Commit acdfc6a

Browse files
committed
test: run Temporal presence checks without V8 flag
Signed-off-by: Renegade334 <[email protected]>
1 parent 4247cd3 commit acdfc6a

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,
@@ -77,6 +78,7 @@ export {
7778
hasFFI,
7879
hasLocalStorage,
7980
hasIntl,
81+
hasTemporal,
8082
hasIPv6,
8183
isAIX,
8284
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)