{"version":3,"file":"process.js","sources":["../../mock/process.js"],"sourcesContent":["/* globals unknown */\n\nimport path from 'path';\n\nfunction noop() {}\n/**\n * @param {unknown[]} arguments_\n */\nfunction nextTick(...arguments_) {\n\tconst [function_] = arguments_;\n\targuments_.shift();\n\tsetTimeout(function () {\n\t\tif (typeof function_ === 'function') {\n\t\t\tfunction_.apply(null, arguments_);\n\t\t}\n\t}, 0);\n}\n\n/**\n * @param {unknown} name\n */\nfunction binding(name) {\n\tthrow new Error('No such module. (Possibly not yet loaded)');\n}\n\nconst features = {};\nconst platformName = 'browser';\nconst pid = 1;\nconst browser = true;\nconst environment = {};\n/** @type {string[]} */\nconst argv = [];\n\nlet cwd = '/';\nfunction getCwd() {\n\treturn cwd;\n}\n/**\n * @param {string} dir\n */\nfunction getChdir(dir) {\n\tcwd = path.resolve(dir, cwd);\n}\n\nexport {\n\tfeatures,\n\tnextTick,\n\tpid,\n\tbrowser,\n\tenvironment as env,\n\targv,\n\tbinding,\n\tgetCwd as cwd,\n\tgetChdir as chdir,\n\tnoop as exit,\n\tnoop as kill,\n\tnoop as umask,\n\tnoop as dlopen,\n\tnoop as uptime,\n\tnoop as memoryUsage,\n\tnoop as uvCounters,\n\tplatformName as platform,\n\tplatformName as arch,\n\tplatformName as execPath,\n\tplatformName as title\n};\n"],"names":["noop","nextTick","_len","arguments","length","arguments_","Array","_key","function_","shift","setTimeout","apply","binding","name","Error","features","platformName","pid","browser","environment","argv","cwd","getCwd","getChdir","dir","path","resolve"],"mappings":";;AAAA;AAIA,SAASA,IAAIA,GAAG,EAAC;AACjB;AACA;AACA;AACA,SAASC,QAAQA,GAAgB;AAAA,EAAA,KAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAZC,UAAU,GAAAC,IAAAA,KAAA,CAAAJ,IAAA,GAAAK,IAAA,GAAA,CAAA,EAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,EAAA,EAAA;AAAVF,IAAAA,UAAU,CAAAE,IAAA,CA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