| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 088460d commit e3ea906
13 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -78,6 +78,7 @@ if (process.argv[2] === 'child') { | |||
| 78 | 78 | ||
| 79 | 79 | if (!(common.isFreeBSD || | |
| 80 | 80 | common.isAIX || | |
| 81 | + common.isIBMi || | ||
| 81 | 82 | (common.isLinux && !isGlibc()) || | |
| 82 | 83 | common.isWindows)) { | |
| 83 | 84 | assert(stderr.includes('ExampleOwnerClass'), stderr); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -119,7 +119,6 @@ if (process.argv.length === 2 && | |||
| 119 | 119 | } | |
| 120 | 120 | ||
| 121 | 121 | const isWindows = process.platform === 'win32'; | |
| 122 | - const isAIX = process.platform === 'aix'; | ||
| 123 | 122 | const isSunOS = process.platform === 'sunos'; | |
| 124 | 123 | const isFreeBSD = process.platform === 'freebsd'; | |
| 125 | 124 | const isOpenBSD = process.platform === 'openbsd'; | |
@@ -262,7 +261,7 @@ function platformTimeout(ms) { | |||
| 262 | 261 | if (process.features.debug) | |
| 263 | 262 | ms = multipliers.two * ms; | |
| 264 | 263 | ||
| 265 | - if (isAIX) | ||
| 264 | + if (exports.isAIX || exports.isIBMi) | ||
| 266 | 265 | return multipliers.two * ms; // Default localhost speed is slower on AIX | |
| 267 | 266 | ||
| 268 | 267 | if (isPi) | |
@@ -902,7 +901,6 @@ const common = { | |||
| 902 | 901 | hasQuic, | |
| 903 | 902 | hasMultiLocalhost, | |
| 904 | 903 | invalidArgTypeHelper, | |
| 905 | - isAIX, | ||
| 906 | 904 | isAlive, | |
| 907 | 905 | isAsan, | |
| 908 | 906 | isDumbTerminal, | |
@@ -966,7 +964,12 @@ const common = { | |||
| 966 | 964 | }, | |
| 967 | 965 | ||
| 968 | 966 | // On IBMi, process.platform and os.platform() both return 'aix', | |
| 967 | + // when built with Python versions earlier than 3.9. | ||
| 969 | 968 | // It is not enough to differentiate between IBMi and real AIX system. | |
| 969 | + get isAIX() { | ||
| 970 | + return require('os').type() === 'AIX'; | ||
| 971 | + }, | ||
| 972 | + | ||
| 970 | 973 | get isIBMi() { | |
| 971 | 974 | return require('os').type() === 'OS400'; | |
| 972 | 975 | }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ | |||
| 5 | 5 | const common = require('../common'); | |
| 6 | 6 | const assert = require('assert'); | |
| 7 | 7 | ||
| 8 | - if (common.isSunOS || common.isWindows || common.isAIX) { | ||
| 8 | + if (common.isSunOS || common.isWindows || common.isAIX || common.isIBMi) { | ||
| 9 | 9 | // The current working directory cannot be removed on these platforms. | |
| 10 | 10 | // Change this to common.skip() when this is no longer a known issue test. | |
| 11 | 11 | assert.fail('cannot rmdir current working directory'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../common'); | |
| 3 | 3 | // Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX. | |
| 4 | - if (common.isSunOS || common.isWindows || common.isAIX) | ||
| 4 | + if (common.isSunOS || common.isWindows || common.isAIX || common.isIBMi) | ||
| 5 | 5 | common.skip('cannot rmdir current working directory'); | |
| 6 | 6 | if (!common.isMainThread) | |
| 7 | 7 | common.skip('process.chdir is not available in Workers'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../common'); | |
| 3 | 3 | // Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX. | |
| 4 | - if (common.isSunOS || common.isWindows || common.isAIX) | ||
| 4 | + if (common.isSunOS || common.isWindows || common.isAIX || common.isIBMi) | ||
| 5 | 5 | common.skip('cannot rmdir current working directory'); | |
| 6 | 6 | if (!common.isMainThread) | |
| 7 | 7 | common.skip('process.chdir is not available in Workers'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../common'); | |
| 3 | 3 | // Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX. | |
| 4 | - if (common.isSunOS || common.isWindows || common.isAIX) | ||
| 4 | + if (common.isSunOS || common.isWindows || common.isAIX || common.isIBMi) | ||
| 5 | 5 | common.skip('cannot rmdir current working directory'); | |
| 6 | 6 | if (!common.isMainThread) | |
| 7 | 7 | common.skip('process.chdir is not available in Workers'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ const common = require('../common'); | |||
| 3 | 3 | ||
| 4 | 4 | // Simulate `cat readfile.js | node readfile.js` | |
| 5 | 5 | ||
| 6 | - if (common.isWindows || common.isAIX) | ||
| 6 | + if (common.isWindows || common.isAIX || common.isIBMi) | ||
| 7 | 7 | common.skip(`No /dev/stdin on ${process.platform}.`); | |
| 8 | 8 | ||
| 9 | 9 | const assert = require('assert'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,7 +24,7 @@ const common = require('../common'); | |||
| 24 | 24 | ||
| 25 | 25 | // Simulate `cat readfile.js | node readfile.js` | |
| 26 | 26 | ||
| 27 | - if (common.isWindows || common.isAIX) | ||
| 27 | + if (common.isWindows || common.isAIX || common.isIBMi) | ||
| 28 | 28 | common.skip(`No /dev/stdin on ${process.platform}.`); | |
| 29 | 29 | ||
| 30 | 30 | const assert = require('assert'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ const common = require('../common'); | |||
| 3 | 3 | ||
| 4 | 4 | // Simulate `cat readfile.js | node readfile.js` | |
| 5 | 5 | ||
| 6 | - if (common.isWindows || common.isAIX) | ||
| 6 | + if (common.isWindows || common.isAIX || common.isIBMi) | ||
| 7 | 7 | common.skip(`No /dev/stdin on ${process.platform}.`); | |
| 8 | 8 | ||
| 9 | 9 | const assert = require('assert'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | 3 | const common = require('../common'); | |
| 4 | 4 | ||
| 5 | - if (common.isWindows || common.isAIX) | ||
| 5 | + if (common.isWindows || common.isAIX || common.isIBMi) | ||
| 6 | 6 | common.skip(`No /dev/stdin on ${process.platform}.`); | |
| 7 | 7 | ||
| 8 | 8 | const assert = require('assert'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments