deno/cli/tools
Bartek Iwańczuk fac6447815
refactor(permissions): add PermissionsContainer struct for internal mutability (#17134)
Turns out we were cloning permissions which after prompting were discarded,
so the state of permissions was never preserved. To handle that we need to store
all permissions behind "Arc<Mutex<>>" (because there are situations where we
need to send them to other thread).

Testing and benching code still uses "Permissions" in most places - it's undesirable
to share the same permission set between various test/bench files - otherwise
granting or revoking permissions in one file would influence behavior of other test
files.
2023-01-07 17:25:34 +01:00
..
coverage chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
init chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
repl refactor(permissions): add PermissionsContainer struct for internal mutability (#17134) 2023-01-07 17:25:34 +01:00
vendor refactor(cli,core,ext,rt): remove some unnecessary clone or malloc (#17274) 2023-01-05 14:29:50 -05:00
bench.rs refactor(permissions): add PermissionsContainer struct for internal mutability (#17134) 2023-01-07 17:25:34 +01:00
bundle.rs fix(cli): bundle command support shebang file (#17113) 2023-01-03 16:19:28 +00:00
check.rs refactor(cli,core,ext,rt): remove some unnecessary clone or malloc (#17274) 2023-01-05 14:29:50 -05:00
doc.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
fmt.rs fix: upgrade deno_ast to 0.23 (#17269) 2023-01-04 18:54:54 -05:00
info.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
installer.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
lint.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
mod.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
run.rs refactor(permissions): add PermissionsContainer struct for internal mutability (#17134) 2023-01-07 17:25:34 +01:00
standalone.rs refactor(permissions): add PermissionsContainer struct for internal mutability (#17134) 2023-01-07 17:25:34 +01:00
task.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
test.rs refactor(permissions): add PermissionsContainer struct for internal mutability (#17134) 2023-01-07 17:25:34 +01:00
upgrade.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00