mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
16 lines
497 B
JavaScript
16 lines
497 B
JavaScript
function notAvailable(name) {
|
|
return function () {
|
|
throw new Error(
|
|
`child_process.${name}() is not available in the web version.`,
|
|
);
|
|
};
|
|
}
|
|
|
|
export const exec = notAvailable("exec");
|
|
export const execSync = notAvailable("execSync");
|
|
export const spawn = notAvailable("spawn");
|
|
export const fork = notAvailable("fork");
|
|
export const execFile = notAvailable("execFile");
|
|
export const execFileSync = notAvailable("execFileSync");
|
|
export const spawnSync = notAvailable("spawnSync");
|