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

Function nothingThere

deps/v8/test/mjsunit/optimized-reduceright.js:40–50  ·  view source on GitHub ↗
(only_holes)

Source from the content-addressed store, hash-verified

38// optimized code.
39(function() {
40var nothingThere = function(only_holes) {
41 var a = [1, 2, , 3]; // holey smi array.
42 if (only_holes) {
43 a = [
44 ,
45 ,
46 ,
47 ]; // also a holey smi array.
48 }
49 return a.reduceRight((r, v, i, o) => r + v);
50};
51;
52%PrepareFunctionForOptimization(nothingThere);
53nothingThere();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected