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

Function sum4

deps/v8/test/mjsunit/arguments-deopt.js:166–174  ·  view source on GitHub ↗
(a,...rest)

Source from the content-addressed store, hash-verified

164
165(function RestAccess1 () {
166 function sum4(a,...rest) {
167 var sum = 0;
168 for (var i = 0; i < rest.length; ++i) {
169 var j = i;
170 if (rest.length % 15 == 0 && i == 10) j += 10000;
171 sum += rest[j] || i+2;
172 }
173 return sum;
174 };
175
176 %PrepareFunctionForOptimization(sum4);
177 var args = []

Callers 1

arguments-deopt.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected