You're misreading it, it's equivalent to this:

```javascript
n += 1;
n |= n >> 1;
n |= n >> 2;
n |= n >> 4;
n |= n >> 8;
n |= n >> 6;
n -= 1;
```

IOW, the standard 'next power of two' bit hack.