| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 581439c commit 248c938
11 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3347,7 +3347,7 @@ any exit or close events and without running any cleanup handler. | |||
| 3347 | 3347 | ||
| 3348 | 3348 | This function will never return, unless an error occurred. | |
| 3349 | 3349 | ||
| 3350 | - This function is not available on Windows. | ||
| 3350 | + This function is not available on Windows or IBM i. | ||
| 3351 | 3351 | ||
| 3352 | 3352 | ## `process.report` | |
| 3353 | 3353 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -244,7 +244,7 @@ function wrapProcessMethods(binding) { | |||
| 244 | 244 | ||
| 245 | 245 | if (!isMainThread) { | |
| 246 | 246 | throw new ERR_WORKER_UNSUPPORTED_OPERATION('Calling process.execve'); | |
| 247 | - } else if (process.platform === 'win32') { | ||
| 247 | + } else if (process.platform === 'win32' || process.platform === 'os400') { | ||
| 248 | 248 | throw new ERR_FEATURE_UNAVAILABLE_ON_PLATFORM('process.execve'); | |
| 249 | 249 | } | |
| 250 | 250 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -477,7 +477,7 @@ static void ReallyExit(const FunctionCallbackInfo<Value>& args) { | |||
| 477 | 477 | env->Exit(code); | |
| 478 | 478 | } | |
| 479 | 479 | ||
| 480 | - #ifdef __POSIX__ | ||
| 480 | + #if defined __POSIX__ && !defined(__PASE__) | ||
| 481 | 481 | inline int persist_standard_stream(int fd) { | |
| 482 | 482 | int flags = fcntl(fd, F_GETFD, 0); | |
| 483 | 483 | ||
@@ -758,7 +758,7 @@ static void CreatePerIsolateProperties(IsolateData* isolate_data, | |||
| 758 | 758 | SetMethod(isolate, target, "dlopen", binding::DLOpen); | |
| 759 | 759 | SetMethod(isolate, target, "reallyExit", ReallyExit); | |
| 760 | 760 | ||
| 761 | - #ifdef __POSIX__ | ||
| 761 | + #if defined __POSIX__ && !defined(__PASE__) | ||
| 762 | 762 | SetMethod(isolate, target, "execve", Execve); | |
| 763 | 763 | #endif | |
| 764 | 764 | SetMethodNoSideEffect(isolate, target, "uptime", Uptime); | |
@@ -804,7 +804,7 @@ void RegisterExternalReferences(ExternalReferenceRegistry* registry) { | |||
| 804 | 804 | registry->Register(binding::DLOpen); | |
| 805 | 805 | registry->Register(ReallyExit); | |
| 806 | 806 | ||
| 807 | - #ifdef __POSIX__ | ||
| 807 | + #if defined __POSIX__ && !defined(__PASE__) | ||
| 808 | 808 | registry->Register(Execve); | |
| 809 | 809 | #endif | |
| 810 | 810 | registry->Register(Uptime); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,14 +1,14 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - const { skip, isWindows } = require('../common'); | ||
| 3 | + const { skip, isWindows, isIBMi } = require('../common'); | ||
| 4 | 4 | const { ok } = require('assert'); | |
| 5 | 5 | const { spawnSync } = require('child_process'); | |
| 6 | 6 | const { isMainThread } = require('worker_threads'); | |
| 7 | 7 | ||
| 8 | 8 | if (!isMainThread) { | |
| 9 | 9 | skip('process.execve is not available in Workers'); | |
| 10 | - } else if (isWindows) { | ||
| 11 | - skip('process.execve is not available in Windows'); | ||
| 10 | + } else if (isWindows || isIBMi) { | ||
| 11 | + skip('process.execve is not available in Windows or IBM i'); | ||
| 12 | 12 | } | |
| 13 | 13 | ||
| 14 | 14 | if (process.argv[2] === 'child') { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,13 +1,13 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - const { mustNotCall, skip, isWindows } = require('../common'); | ||
| 3 | + const { mustNotCall, skip, isWindows, isIBMi } = require('../common'); | ||
| 4 | 4 | const { strictEqual } = require('assert'); | |
| 5 | 5 | const { isMainThread } = require('worker_threads'); | |
| 6 | 6 | ||
| 7 | 7 | if (!isMainThread) { | |
| 8 | 8 | skip('process.execve is not available in Workers'); | |
| 9 | - } else if (isWindows) { | ||
| 10 | - skip('process.execve is not available in Windows'); | ||
| 9 | + } else if (isWindows || isIBMi) { | ||
| 10 | + skip('process.execve is not available in Windows or IBM i'); | ||
| 11 | 11 | } | |
| 12 | 12 | ||
| 13 | 13 | if (process.argv[2] === 'replaced') { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,14 +2,14 @@ | |||
| 2 | 2 | ||
| 3 | 3 | 'use strict'; | |
| 4 | 4 | ||
| 5 | - const { mustCall, skip, isWindows } = require('../common'); | ||
| 5 | + const { mustCall, skip, isWindows, isIBMi } = require('../common'); | ||
| 6 | 6 | const { fail, throws } = require('assert'); | |
| 7 | 7 | const { isMainThread } = require('worker_threads'); | |
| 8 | 8 | ||
| 9 | 9 | if (!isMainThread) { | |
| 10 | 10 | skip('process.execve is not available in Workers'); | |
| 11 | - } else if (isWindows) { | ||
| 12 | - skip('process.execve is not available in Windows'); | ||
| 11 | + } else if (isWindows || isIBMi) { | ||
| 12 | + skip('process.execve is not available in Windows or IBM i'); | ||
| 13 | 13 | } | |
| 14 | 14 | ||
| 15 | 15 | if (process.argv[2] === 'replaced') { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,14 +2,14 @@ | |||
| 2 | 2 | ||
| 3 | 3 | 'use strict'; | |
| 4 | 4 | ||
| 5 | - const { skip, isWindows } = require('../common'); | ||
| 5 | + const { skip, isWindows, isIBMi } = require('../common'); | ||
| 6 | 6 | const { deepStrictEqual } = require('assert'); | |
| 7 | 7 | const { isMainThread } = require('worker_threads'); | |
| 8 | 8 | ||
| 9 | 9 | if (!isMainThread) { | |
| 10 | 10 | skip('process.execve is not available in Workers'); | |
| 11 | - } else if (isWindows) { | ||
| 12 | - skip('process.execve is not available in Windows'); | ||
| 11 | + } else if (isWindows || isIBMi) { | ||
| 12 | + skip('process.execve is not available in Windows or IBM i'); | ||
| 13 | 13 | } | |
| 14 | 14 | ||
| 15 | 15 | if (process.argv[2] === 'replaced') { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,14 +1,14 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - const { mustCall, mustNotCall, skip, isWindows } = require('../common'); | ||
| 3 | + const { mustCall, mustNotCall, skip, isWindows, isIBMi } = require('../common'); | ||
| 4 | 4 | const { fail, ok } = require('assert'); | |
| 5 | 5 | const { createServer } = require('net'); | |
| 6 | 6 | const { isMainThread } = require('worker_threads'); | |
| 7 | 7 | ||
| 8 | 8 | if (!isMainThread) { | |
| 9 | 9 | skip('process.execve is not available in Workers'); | |
| 10 | - } else if (isWindows) { | ||
| 11 | - skip('process.execve is not available in Windows'); | ||
| 10 | + } else if (isWindows || isIBMi) { | ||
| 11 | + skip('process.execve is not available in Windows or IBM i'); | ||
| 12 | 12 | } | |
| 13 | 13 | ||
| 14 | 14 | if (process.argv[2] === 'replaced') { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,14 +1,14 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - const { skip, isWindows } = require('../common'); | ||
| 3 | + const { skip, isWindows, isIBMi } = require('../common'); | ||
| 4 | 4 | const { throws } = require('assert'); | |
| 5 | 5 | const { isMainThread } = require('worker_threads'); | |
| 6 | 6 | ||
| 7 | 7 | if (!isMainThread) { | |
| 8 | 8 | skip('process.execve is not available in Workers'); | |
| 9 | 9 | } | |
| 10 | 10 | ||
| 11 | - if (!isWindows) { | ||
| 11 | + if (!isWindows && !isIBMi) { | ||
| 12 | 12 | // Invalid path name | |
| 13 | 13 | { | |
| 14 | 14 | throws(() => { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,11 +1,11 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - const { isWindows, mustCall, skip } = require('../common'); | ||
| 3 | + const { isWindows, isIBMi, mustCall, skip } = require('../common'); | ||
| 4 | 4 | const { throws } = require('assert'); | |
| 5 | 5 | const { isMainThread, Worker } = require('worker_threads'); | |
| 6 | 6 | ||
| 7 | - if (isWindows) { | ||
| 8 | - skip('process.execve is not available in Windows'); | ||
| 7 | + if (isWindows || isIBMi) { | ||
| 8 | + skip('process.execve is not available in Windows or IBM i'); | ||
| 9 | 9 | } | |
| 10 | 10 | ||
| 11 | 11 | if (isMainThread) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments