mirror of
https://github.com/janet-lang/janet
synced 2024-12-25 16:00:27 +00:00
Check sandbox capabilities instead of ignoring unknown ones.
This commit is contained in:
parent
37b7e170fa
commit
73c2fbbc2a
@ -715,6 +715,7 @@ JANET_CORE_FN(janet_core_sandbox,
|
||||
}
|
||||
opt++;
|
||||
}
|
||||
if (opt->name == NULL) janet_panicf("unknown capability %v", argv[i]);
|
||||
}
|
||||
janet_sandbox(flags);
|
||||
return janet_wrap_nil();
|
||||
|
Loading…
Reference in New Issue
Block a user