function setProp(val, props) {
        /* eslint-disable no-bitwise, sort-keys */
        return {
            "configurable": (props & 4) > 0,
            "enumerable": (props & 2) > 0,
            "writable": (props & 1) > 0,
            "value": val
        };
        /* eslint-enable no-bitwise, sort-keys */
    }
Set value and properties of object member
Argument <props> is a bit pattern:
1. bit: configurable
2. bit: enumerable
3. bit writable
e.g. 011(2) = 3(10) => configurable: f, enumerable: t, writable: t
or   010(2) = 2(10) => configurable: f, enumerable: t, writable: f
@param {any} val The value
@param {number} props bitfield
@returns {Object} Property object