mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 23:04:45 -05:00
fix(ext/node): handle --allow-sys=inspector
(#26836)
`op_inspector_open` checks for "inspector" as one of the allowed sys value.
This commit is contained in:
parent
7d326c269c
commit
7179bdcc77
1 changed files with 1 additions and 1 deletions
|
@ -1461,7 +1461,7 @@ pub struct SysDescriptor(String);
|
|||
impl SysDescriptor {
|
||||
pub fn parse(kind: String) -> Result<Self, SysDescriptorParseError> {
|
||||
match kind.as_str() {
|
||||
"hostname" | "osRelease" | "osUptime" | "loadavg"
|
||||
"hostname" | "inspector" | "osRelease" | "osUptime" | "loadavg"
|
||||
| "networkInterfaces" | "systemMemoryInfo" | "uid" | "gid" | "cpus"
|
||||
| "homedir" | "getegid" | "statfs" | "getPriority" | "setPriority"
|
||||
| "userInfo" => Ok(Self(kind)),
|
||||
|
|
Loading…
Reference in a new issue