mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 20:38:55 +00: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
@ -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 New Issue
Block a user