@makano/rew 1.2.77 → 1.2.78
Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,7 @@ const execLib = require("../functions/exec");
|
|
10
10
|
const { findAppInfo } = require("../misc/findAppInfo");
|
11
11
|
const { USING_DEFAULT, Usage, Namespace } = require("../const/usage");
|
12
12
|
const runtime = require("./runtime");
|
13
|
+
const { permission } = require("process");
|
13
14
|
|
14
15
|
let mainFile = "";
|
15
16
|
const isMainFile = (filepath) => filepath == mainFile;
|
@@ -61,8 +62,13 @@ module.exports.prepareContext = function (
|
|
61
62
|
__execFile: global.fileName,
|
62
63
|
env: process.env,
|
63
64
|
cwd: () => process.cwd(),
|
65
|
+
abort: () => process.abort(),
|
66
|
+
kill: () => process.kill(),
|
67
|
+
exit: (code) => process.exit(code),
|
64
68
|
arch: process.arch,
|
65
|
-
pid: process.pid
|
69
|
+
pid: process.pid,
|
70
|
+
platform: process.platform,
|
71
|
+
permission: process.permission
|
66
72
|
};
|
67
73
|
|
68
74
|
context.global = context;
|