process-browser.js 388 B

12345678910111213141516171819202122
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. module.exports = {
  7. /**
  8. * @type {Record<string, string>}
  9. */
  10. versions: {},
  11. /**
  12. * @param {function} fn function
  13. */
  14. nextTick(fn) {
  15. const args = Array.prototype.slice.call(arguments, 1);
  16. Promise.resolve().then(function () {
  17. fn.apply(null, args);
  18. });
  19. }
  20. };