summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-05 08:45:55 +1000
committerGitHub <noreply@github.com>2024-09-05 08:45:55 +1000
commit195b17ae1298f80209e3c2c5ef4d133e6975ff58 (patch)
treef9a059722830aa408ecd8f9f7e63180455eb14aa /runtime/js
parentc32d692a8f37c50fd700bb320571f76a107a44c2 (diff)
BREAKING(types): soft-remove `Deno.run()` (#25403)
Towards #22079
Diffstat (limited to 'runtime/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,