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

Function nothingThere

deps/v8/test/mjsunit/optimized-reduce.js:36–42  ·  view source on GitHub ↗
(only_holes)

Source from the content-addressed store, hash-verified

34// optimized code.
35(function() {
36 var nothingThere = function(only_holes) {
37 var a = [1,2,,3]; // holey smi array.
38 if (only_holes) {
39 a = [,,,]; // also a holey smi array.
40 }
41 return a.reduce((r,v,i,o)=>r+v);
42 };
43 %PrepareFunctionForOptimization(nothingThere);
44 nothingThere();
45 nothingThere();

Callers 1

Calls 1

reduceMethod · 0.80

Tested by

no test coverage detected