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

Function g

deps/v8/test/mjsunit/compiler/loops.js:48–56  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

46
47// Test do-while loop and continue.
48function g(a) {
49 var x = 0, c = 0;
50 do {
51 x = x + 1;
52 if (x < 5) continue;
53 c = c + 1;
54 } while(x < a);
55 return c;
56}
57
58assertEquals(6, g(10));
59

Calls

no outgoing calls

Tested by

no test coverage detected