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

Function f4_string

deps/v8/test/mjsunit/switch.js:131–139  ·  view source on GitHub ↗
(tag, x)

Source from the content-addressed store, hash-verified

129assertEquals(5, f4(3), "fallthrough-switch.3");
130
131function f4_string(tag, x) {
132 switch(tag) {
133 case 'zero':
134 x++;
135 case 'two':
136 x++;
137 }
138 return x;
139}
140
141// Symbols
142assertEquals(2, f4_string('zero', 0), "fallthrough-string-switch.0");

Callers 1

switch.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected