summaryrefslogtreecommitdiff
path: root/runtime/js/40_process.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/40_process.js')
-rw-r--r--runtime/js/40_process.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/runtime/js/40_process.js b/runtime/js/40_process.js
index b2269ffd6..954d8d00b 100644
--- a/runtime/js/40_process.js
+++ b/runtime/js/40_process.js
@@ -130,6 +130,8 @@ class Process {
}
}
+// Note: This function was soft-removed in Deno 2. Its types have been removed,
+// but its implementation has been kept to avoid breaking changes.
function run({
cmd,
cwd = undefined,
@@ -144,11 +146,6 @@ function run({
...new SafeArrayIterator(ArrayPrototypeSlice(cmd, 1)),
];
}
- internals.warnOnDeprecatedApi(
- "Deno.run()",
- (new Error()).stack,
- `Use "Deno.Command()" API instead.`,
- );
const res = opRun({
cmd: ArrayPrototypeMap(cmd, String),
cwd,