diff options
Diffstat (limited to 'runtime/js/40_process.js')
-rw-r--r-- | runtime/js/40_process.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/js/40_process.js b/runtime/js/40_process.js index c90f38664..e6a62dcf7 100644 --- a/runtime/js/40_process.js +++ b/runtime/js/40_process.js @@ -140,6 +140,11 @@ 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, |