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

Function fhole

deps/v8/test/mjsunit/switch.js:265–281  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

263assertEquals(4222, f6(148), "largeSwitch.148");
264
265function fhole(x) {
266 switch(x){
267 case 0:
268 x = 2;
269 case 2:
270 x = 3;
271 case 3:
272 x = 4;
273 case 4:
274 x = 5;
275 break;
276 case 5:
277 x = 6;
278 break;
279 }
280 return x;
281}
282
283assertEquals(1, fhole(1), "fhole.jumptablehole");
284

Callers 1

switch.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…