| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 102da27 commit c73aba0
4 files changed
| 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, | |
| 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, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,8 @@ | |||
| 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 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,8 @@ | |||
| 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 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments