Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c73aba0

Browse filesBrowse files
Renegade334aduh95
authored andcommitted
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 102da27 commit c73aba0
Copy full SHA for c73aba0

4 files changed

+6-6Lines changed: 6 additions & 6 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/common/index.js‎

Copy file name to clipboardExpand all lines: test/common/index.js
+2Lines 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,
Collapse file

‎test/common/index.mjs‎

Copy file name to clipboardExpand all lines: test/common/index.mjs
+2Lines 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,
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-temporal-with-zoneinfo.js
+1-3Lines 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

Collapse file

‎test/parallel/test-temporal.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-temporal.js
+1-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.