MCPcopy Index your code
hub / github.com/nodejs/node / unreliable

Function unreliable

deps/v8/test/mjsunit/optimized-map.js:554–556  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

552 %NeverOptimizeFunction(side_effect);
553
554 function unreliable(a, b) {
555 return a.map(x => x * 2, side_effect(a, b));
556 }
557
558 let a = [1, 2, 3];
559 %PrepareFunctionForOptimization(unreliable);

Calls 2

mapMethod · 0.65
side_effectFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…