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

Function testIfs

deps/v8/test/mjsunit/undetectable.js:29–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29function testIfs() {
30 if (obj) {
31 shouldNotBeTaken();
32 }
33
34 if (obj) {
35 shouldNotBeTaken();
36 } else {
37 // do nothing
38 }
39
40 if (!obj) {
41 // do nothing
42 } else {
43 shouldBeTaken();
44 }
45}
46
47function testWhiles() {
48 while (obj) {

Callers 1

undetectable.jsFile · 0.85

Calls 2

shouldNotBeTakenFunction · 0.85
shouldBeTakenFunction · 0.85

Tested by

no test coverage detected