mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -05:00
fix(npm): remove forgotten unstable check (#16598)
This commit is contained in:
parent
38f0b41e7d
commit
7f0546a6b7
4 changed files with 3 additions and 15 deletions
|
@ -2918,15 +2918,9 @@ itest!(nested_error {
|
|||
exit_code: 1,
|
||||
});
|
||||
|
||||
itest!(node_env_var_allowlist_with_unstable_flag {
|
||||
itest!(node_env_var_allowlist {
|
||||
args: "run --unstable --no-prompt run/node_env_var_allowlist.ts",
|
||||
output: "run/node_env_var_allowlist_with_unstable_flag.ts.out",
|
||||
exit_code: 1,
|
||||
});
|
||||
|
||||
itest!(node_env_var_allowlist_without_unstable_flag {
|
||||
args: "run --no-prompt run/node_env_var_allowlist.ts",
|
||||
output: "run/node_env_var_allowlist_without_unstable_flag.ts.out",
|
||||
output: "run/node_env_var_allowlist.ts.out",
|
||||
exit_code: 1,
|
||||
});
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[WILDCARD]error: Uncaught PermissionDenied: Requires env access to "NODE_DEBUG", run again with the --allow-env flag
|
||||
console.log(Deno.env.get("NODE_DEBUG") ?? "ok");
|
||||
^
|
||||
at [WILDCARD]
|
|
@ -112,9 +112,7 @@ fn op_get_env(
|
|||
state: &mut OpState,
|
||||
key: String,
|
||||
) -> Result<Option<String>, AnyError> {
|
||||
let skip_permission_check =
|
||||
state.borrow::<crate::ops::UnstableChecker>().unstable
|
||||
&& NODE_ENV_VAR_ALLOWLIST.contains(&key);
|
||||
let skip_permission_check = NODE_ENV_VAR_ALLOWLIST.contains(&key);
|
||||
|
||||
if !skip_permission_check {
|
||||
state.borrow_mut::<Permissions>().env.check(&key)?;
|
||||
|
|
Loading…
Reference in a new issue