MCPcopy Index your code
hub / github.com/nodejs/node / reportOperatorErrorUnless

Function reportOperatorErrorUnless

test/fixtures/snapshot/typescript.js:79325–79331  ·  view source on GitHub ↗

* Returns true if an error is reported

(typesAreCompatible)

Source from the content-addressed store, hash-verified

79323 * Returns true if an error is reported
79324 */
79325 function reportOperatorErrorUnless(typesAreCompatible) {
79326 if (!typesAreCompatible(leftType, rightType)) {
79327 reportOperatorError(typesAreCompatible);
79328 return true;
79329 }
79330 return false;
79331 }
79332 function reportOperatorError(isRelated) {
79333 var _a;
79334 var wouldWorkWithAwait = false;

Callers 1

Calls 1

reportOperatorErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…