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

Function break_from_catch

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

Source from the content-addressed store, hash-verified

136
137
138function break_from_catch(x) {
139 x--;
140 L:
141 {
142 try {
143 x++;
144 if (false) return -1;
145 break L;
146 } catch (o) {
147 x--;
148 }
149 }
150 return x;
151}
152
153assertEquals(0, break_from_catch(0));
154assertEquals(1, break_from_catch(1));

Callers 1

try.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected