MCPcopy Create free account
hub / github.com/nodejs/node / testBadConversion

Function testBadConversion

deps/v8/test/mjsunit/double-equals.js:228–233  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

226testNotEqual(badObject, undefined);
227// Forcing conversion will throw.
228function testBadConversion(value) {
229 assertThrows(function() { return badObject == value; });
230 assertThrows(function() { return badObject != value; });
231 assertThrows(function() { return value == badObject; });
232 assertThrows(function() { return value != badObject; });
233}
234testBadConversion(0);
235testBadConversion("string");
236testBadConversion(true);

Callers 1

double-equals.jsFile · 0.85

Calls 1

assertThrowsFunction · 0.50

Tested by

no test coverage detected