summaryrefslogtreecommitdiff
path: root/cli/tests/inspector_tests.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-12-07 20:21:18 +0100
committerGitHub <noreply@github.com>2022-12-07 20:21:18 +0100
commit1a472ad06bdc55b1fa0c0f26ca2d24d709f2e0c3 (patch)
tree7b1c8b615f36916744723e8d60162801eb6127a7 /cli/tests/inspector_tests.rs
parent192f07bb7e2076808cae1eeb6c701cdd3d8d42cd (diff)
feat(repl): run "deno repl" with no permissions (#16795)
This commit changes "deno repl" command to run with no permissions by default and accept "--allow-*" flags. This change is dictated by the fact that currently there is no way to run REPL with limited permissions. Technically it's a breaking change in the CLI command, but there's agreement in the team that it has merit and it's a good solution. Running just "deno" command still starts the REPL with full permissions allowed, but now a banner is printed to inform users about that:
Diffstat (limited to 'cli/tests/inspector_tests.rs')
-rw-r--r--cli/tests/inspector_tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/tests/inspector_tests.rs b/cli/tests/inspector_tests.rs
index 8e5a8d1f6..0cf8cc3bb 100644
--- a/cli/tests/inspector_tests.rs
+++ b/cli/tests/inspector_tests.rs
@@ -557,6 +557,7 @@ mod inspector {
async fn inspector_runtime_evaluate_does_not_crash() {
let child = util::deno_cmd()
.arg("repl")
+ .arg("--allow-read")
.arg(inspect_flag_with_unique_port("--inspect"))
.stdin(std::process::Stdio::piped())
.stdout(std::process::Stdio::piped())