JAVASCRIPT 23
Process.js Guest on 2nd May 2021 01:47:40 PM
  1. exports.nextTick = function nextTick(fn) {
  2.       setTimeout(fn, 0);
  3. };
  4.  
  5. exports.platform = exports.arch =
  6. exports.execPath = exports.title = 'browser';
  7. exports.pid = 1;
  8. exports.browser = true;
  9. exports.env = {};
  10. exports.argv = [];
  11.  
  12. exports.binding = function (name) {
  13.       throw new Error('No such module. (Possibly not yet loaded)')
  14. };
  15.  
  16. (function () {
  17.     var cwd = '/';
  18.     var path;
  19.     exports.cwd = function () { return cwd };
  20.     exports.chdir = function (dir) {
  21.         if (!path) path = require('path');
  22.         cwd = path.resolve(dir, cwd);
  23.     };
  24. })();
  25.  
  26. exports.exit = exports.kill =
  27. exports.umask = exports.dlopen =
  28. exports.uptime = exports.memoryUsage =
  29. exports.uvCounters = function() {};
  30. exports.features = {};

Paste-bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.