(groups)
| 66 | } |
| 67 | |
| 68 | function setgroups(groups) { |
| 69 | validateArray(groups, 'groups'); |
| 70 | for (let i = 0; i < groups.length; i++) { |
| 71 | validateId(groups[i], `groups[${i}]`); |
| 72 | } |
| 73 | // Result is 0 on success. A positive integer indicates that the |
| 74 | // corresponding group was not found. |
| 75 | const result = _setgroups(groups); |
| 76 | if (result > 0) { |
| 77 | throw new ERR_UNKNOWN_CREDENTIAL('Group', groups[result - 1]); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | function wrapIdSetter(type, method) { |
| 82 | return function(id) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…