GeezerVison is showing github.com — test: run Temporal presence checks without V8 flag · nodejs/node@c73aba0
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: test/common/index.js +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -35,6 +35,7 @@ const tmpdir = require('./tmpdir'); | 35 | 35 | const bits = ['arm64', 'loong64', 'mips', 'mipsel', 'ppc64', 'riscv64', 's390x', 'x64'] | 36 | 36 | .includes(process.arch) ? 64 : 32; | 37 | 37 | const hasIntl = !!process.config.variables.v8_enable_i18n_support; | | 38 | +const hasTemporal = !!process.config.variables.v8_enable_temporal_support; | 38 | 39 |
| 39 | 40 | // small-icu doesn't support non-English locales | 40 | 41 | const hasFullICU = (() => { | @@ -980,6 +981,7 @@ const common = { | 980 | 981 | getBufferSources, | 981 | 982 | getTTYfd, | 982 | 983 | hasIntl, | | 984 | + hasTemporal, | 983 | 985 | hasFullICU, | 984 | 986 | hasCrypto, | 985 | 987 | hasQuic, | |
Collapse file Copy file name to clipboardExpand all lines: test/common/index.mjs +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -22,6 +22,7 @@ const { | 22 | 22 | hasFFI, | 23 | 23 | hasLocalStorage, | 24 | 24 | hasIntl, | | 25 | + hasTemporal, | 25 | 26 | hasIPv6, | 26 | 27 | isAIX, | 27 | 28 | isAlive, | @@ -78,6 +79,7 @@ export { | 78 | 79 | hasFFI, | 79 | 80 | hasLocalStorage, | 80 | 81 | hasIntl, | | 82 | + hasTemporal, | 81 | 83 | hasIPv6, | 82 | 84 | isAIX, | 83 | 85 | isAlive, | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-temporal-with-zoneinfo.js +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -// Flags: --harmony-temporal | 2 | | - | 3 | 1 | 'use strict'; | 4 | 2 | const common = require('../common'); | 5 | 3 | const assert = require('assert'); | 6 | 4 |
| 7 | | -if (!process.config.variables.v8_enable_temporal_support) { | | 5 | +if (!common.hasTemporal) { | 8 | 6 | common.skip('Temporal is not enabled'); | 9 | 7 | } | 10 | 8 |
| |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-temporal.js +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -// Flags: --harmony-temporal | 2 | | - | 3 | 1 | 'use strict'; | 4 | 2 | const common = require('../common'); | 5 | 3 | const assert = require('assert'); | 6 | 4 |
| 7 | | -if (!process.config.variables.v8_enable_temporal_support) { | | 5 | +if (!common.hasTemporal) { | 8 | 6 | common.skip('Temporal is not enabled'); | 9 | 7 | } | 10 | 8 |
| |
|