commit node_modules and generated files
This commit is contained in:
parent
6d7a135fea
commit
34b372292b
3379 changed files with 449603 additions and 2029 deletions
34
node_modules/node-libs-browser/mock/process.js
generated
vendored
Normal file
34
node_modules/node-libs-browser/mock/process.js
generated
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
exports.nextTick = function nextTick(fn) {
|
||||
var args = Array.prototype.slice.call(arguments);
|
||||
args.shift();
|
||||
setTimeout(function () {
|
||||
fn.apply(null, args);
|
||||
}, 0);
|
||||
};
|
||||
|
||||
exports.platform = exports.arch =
|
||||
exports.execPath = exports.title = 'browser';
|
||||
exports.pid = 1;
|
||||
exports.browser = true;
|
||||
exports.env = {};
|
||||
exports.argv = [];
|
||||
|
||||
exports.binding = function (name) {
|
||||
throw new Error('No such module. (Possibly not yet loaded)')
|
||||
};
|
||||
|
||||
(function () {
|
||||
var cwd = '/';
|
||||
var path;
|
||||
exports.cwd = function () { return cwd };
|
||||
exports.chdir = function (dir) {
|
||||
if (!path) path = require('path');
|
||||
cwd = path.resolve(dir, cwd);
|
||||
};
|
||||
})();
|
||||
|
||||
exports.exit = exports.kill =
|
||||
exports.umask = exports.dlopen =
|
||||
exports.uptime = exports.memoryUsage =
|
||||
exports.uvCounters = function() {};
|
||||
exports.features = {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue