Webpack build for branch 11.4-dev: 5d889be6db

This commit is contained in:
Travis CI 2018-08-15 11:59:07 +00:00
parent ef61956627
commit 075cdf8831
2 changed files with 2 additions and 1 deletions

View file

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

File diff suppressed because one or more lines are too long