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

Function continue_alot_from_finally

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

Source from the content-addressed store, hash-verified

214
215
216function continue_alot_from_finally(x) {
217 var j = 0;
218 for (var i = 0; i < x;) {
219 try {
220 j++;
221 continue;
222 j++; // should not happen
223 } finally {
224 i++; // must happen
225 }
226 j++; // should not happen
227 }
228 return j;
229}
230
231
232assertEquals(100, continue_alot_from_finally(100));

Callers 1

try.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected