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

Function sum3

deps/v8/test/mjsunit/arguments-deopt.js:145–153  ·  view source on GitHub ↗
(...rest)

Source from the content-addressed store, hash-verified

143
144(function RestAccess0 () {
145 function sum3(...rest) {
146 var sum = 0;
147 for (var i = 0; i < rest.length; ++i) {
148 var j = i;
149 if (rest.length % 15 == 0 && i == 10) j += 10000;
150 sum += rest[j] || i+1;
151 }
152 return sum;
153 };
154
155 %PrepareFunctionForOptimization(sum3);
156 var args = []

Callers 1

arguments-deopt.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected