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

Function f

deps/v8/test/mjsunit/compiler/loops.js:38–43  ·  view source on GitHub ↗
(i, n)

Source from the content-addressed store, hash-verified

36
37// Test assignments in the loop condition.
38function f(i, n) {
39 while((n = n - 1) >= 0) {
40 i = n + 1;
41 }
42 return i;
43}
44assertEquals(1, f(0, 42));
45
46

Callers 15

testFunction · 0.70
regress-633497.jsFile · 0.70
TestNonPrimitiveFunction · 0.70
TestFunction · 0.70
gFunction · 0.70

Calls

no outgoing calls

Tested by 14

testFunction · 0.56
testFunction · 0.56
testFunction · 0.56
testFunction · 0.56
testFunction · 0.56
testFunction · 0.56
testFunction · 0.56
testFunction · 0.56
testFunction · 0.56
testFunction · 0.56
testFunction · 0.56
testFunction · 0.56