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