Skip to content

Commit

Permalink
Fixes microsoft/monaco-editor#2328: In some webpack configurations, `…
Browse files Browse the repository at this point in the history
…process` can be defined, while `process.nextTick` is not
  • Loading branch information
alexdima committed Feb 1, 2021
1 parent 1269598 commit 643cbb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/base/common/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 643cbb2

Please sign in to comment.