(bit)
| 123 | |
| 124 | // TODO(benjamingr) it is likely slower to do it this way than with free functions |
| 125 | function makeBitMapDescriptor(bit) { |
| 126 | return { |
| 127 | enumerable: false, |
| 128 | get() { return (this[kState] & bit) !== 0; }, |
| 129 | set(value) { |
| 130 | if (value) this[kState] |= bit; |
| 131 | else this[kState] &= ~bit; |
| 132 | }, |
| 133 | }; |
| 134 | } |
| 135 | ObjectDefineProperties(WritableState.prototype, { |
| 136 | // Object stream flag to indicate whether or not this stream |
| 137 | // contains buffers or objects. |
no outgoing calls
no test coverage detected
searching dependent graphs…