Files
todo-frontend/node_modules/licia/nextTick.js
Agent d12eea7693
Some checks failed
continuous-integration/drone/push Build is failing
fix: 微信登录补充保存username和role
2026-04-04 07:35:21 +00:00

19 lines
478 B
JavaScript

if (typeof process === 'object' && process.nextTick && !false) {
exports = process.nextTick;
} else if (typeof setImmediate === 'function') {
exports = function(cb) {
setImmediate(ensureCallable(cb));
};
} else {
exports = function(cb) {
setTimeout(ensureCallable(cb), 0);
};
}
function ensureCallable(fn) {
if (typeof fn !== 'function')
throw new TypeError(fn + ' is not a function');
return fn;
}
module.exports = exports;