(operator: string)
| 1206 | |
| 1207 | // `==`, `===`, `!=` or `!==`, which compare a reference without leaking it |
| 1208 | const isEqualityOperator = (operator: string): boolean => |
| 1209 | /^[!=]==?$/.test(operator) |
| 1210 | |
| 1211 | // a read of a prototype that neither mutates nor leaks it, e.g. |
| 1212 | // `Array.prototype.slice.call(list)` or `proto === Object.prototype` |
no test coverage detected