Webpack build for branch master: 79278bccb4

This commit is contained in:
Travis CI 2017-03-21 06:17:49 +00:00
parent 62d73051b5
commit fb59644c65
2 changed files with 2 additions and 2 deletions

View file

@ -1354,7 +1354,7 @@ class Permissions {
* @returns {number|number[]}
*/
static resolve(permission) {
if (permission instanceof Array) return permission.map(p => this.resolve(p));
if (permission instanceof Array) return permission.map(p => this.resolve(p)).reduce((prev, p) => prev | p, 0);
if (typeof permission === 'string') permission = this.FLAGS[permission];
if (typeof permission !== 'number' || permission < 1) throw new RangeError(Constants.Errors.NOT_A_PERMISSION);
return permission;

File diff suppressed because one or more lines are too long