Skip to content

Commit caa3281

Browse files
committed
Fix: address errors with setImmediate in IE
1 parent 519123e commit caa3281

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/deps/forge.js

+7
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,11 @@ modeRaw.prototype.decrypt = function(input, output) {
9292
forge.cipher.registerAlgorithm(name, factory);
9393
})();
9494

95+
// Prevent nextTick from being used when possible
96+
if ("function" === typeof setImmediate) {
97+
forge.util.setImmediate = forge.util.nextTick = function(callback) {
98+
setImmediate(callback);
99+
};
100+
}
101+
95102
module.exports = forge;

0 commit comments

Comments
 (0)