mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
An empty reference passed to process.permission.drop() fell through to dropping the whole scope, while has() treats it as not granted. Throw ERR_INVALID_ARG_VALUE instead, in both the JS wrapper and the binding. Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com> PR-URL: https://github.com/nodejs/node/pull/66732 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>