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

Function unreliable

deps/v8/test/mjsunit/optimized-foreach.js:417–420  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

415 %NeverOptimizeFunction(side_effect);
416
417 function unreliable(a, b) {
418 let sum = 0;
419 return a.forEach(x => sum += x, side_effect(a, b));
420 };
421 %PrepareFunctionForOptimization(unreliable);
422 let a = [1, 2, 3];
423 unreliable(a, false);

Callers 1

Calls 2

forEachMethod · 0.65
side_effectFunction · 0.50

Tested by

no test coverage detected