mirror of
https://github.com/denoland/deno.git
synced 2025-08-02 01:52:56 +00:00
parent
c32d692a8f
commit
195b17ae12
9 changed files with 58 additions and 368 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue