diff --git a/src/vs/base/common/platform.ts b/src/vs/base/common/platform.ts index 1718b51162297..e61f64b9d42f0 100644 --- a/src/vs/base/common/platform.ts +++ b/src/vs/base/common/platform.ts @@ -235,7 +235,7 @@ export const setImmediate: ISetImmediate = (function defineSetImmediate() { globals.postMessage({ vscodeSetImmediateId: myId }, '*'); }; } - if (nodeProcess) { + if (nodeProcess && typeof nodeProcess.nextTick === 'function') { return nodeProcess.nextTick.bind(nodeProcess); } const _promise = Promise.resolve();