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

Function break_from_nested_finally

deps/v8/test/mjsunit/try.js:261–279  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

259
260
261function break_from_nested_finally(x) {
262 L:
263 {
264 try {
265 x++;
266 try {
267 x++;
268 if (false) return -1;
269 break L;
270 } finally {
271 x--;
272 }
273 } finally {
274 x--;
275 }
276 x--; // should not happen
277 }
278 return x;
279}
280
281assertEquals(0, break_from_nested_finally(0));
282assertEquals(1, break_from_nested_finally(1));

Callers 1

try.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected