process-browser.js 299 B

12345678910111213141516
  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. versions: {},
  8. nextTick(fn) {
  9. const args = Array.prototype.slice.call(arguments, 1);
  10. Promise.resolve().then(function () {
  11. fn.apply(null, args);
  12. });
  13. }
  14. };