(val)
| 70 | } |
| 71 | |
| 72 | function inspectValue(val) { |
| 73 | // The util.inspect default values could be changed. This makes sure the |
| 74 | // error messages contain the necessary information nevertheless. |
| 75 | return inspect(val, { |
| 76 | compact: false, |
| 77 | customInspect: false, |
| 78 | depth: 1000, |
| 79 | maxArrayLength: Infinity, |
| 80 | // Assert compares only enumerable properties (with a few exceptions). |
| 81 | showHidden: false, |
| 82 | // Assert does not detect proxies currently. |
| 83 | showProxy: false, |
| 84 | sorted: true, |
| 85 | // Inspect getters as we also check them when comparing entries. |
| 86 | getters: true, |
| 87 | }); |
| 88 | } |
| 89 | |
| 90 | function getErrorMessage(operator, message) { |
| 91 | return message || kReadableOperator[operator]; |
no test coverage detected
searching dependent graphs…