(msg)
| 560 | } |
| 561 | |
| 562 | function mustNotCall(msg) { |
| 563 | const callSite = getCallSites()[1]; |
| 564 | return function mustNotCall(...args) { |
| 565 | const argsInfo = args.length > 0 ? |
| 566 | `\ncalled with arguments: ${args.map((arg) => inspect(arg)).join(', ')}` : ''; |
| 567 | assert.fail( |
| 568 | `${msg || 'function should not have been called'} at ${callSite.scriptName}:${callSite.lineNumber}` + |
| 569 | argsInfo); |
| 570 | }; |
| 571 | } |
| 572 | |
| 573 | const _mustNotMutateObjectDeepProxies = new WeakMap(); |
| 574 |
no test coverage detected
searching dependent graphs…