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

Function break_from_nested_catch

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

Source from the content-addressed store, hash-verified

235
236
237function break_from_nested_catch(x) {
238 x -= 2;
239 L:
240 {
241 try {
242 x++;
243 try {
244 x++;
245 if (false) return -1;
246 break L;
247 } catch (o) {
248 x--;
249 }
250 } catch (o) {
251 x--;
252 }
253 }
254 return x;
255}
256
257assertEquals(0, break_from_nested_catch(0));
258assertEquals(1, break_from_nested_catch(1));

Callers 1

try.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected