1
0
Fork 0
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:
Divy Srivastava 2024-11-12 21:25:49 +05:30 committed by GitHub
parent 7d326c269c
commit 7179bdcc77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)),