/js/src/jit-test/tests/basic/nestedExitLoop.js
http://github.com/zpao/v8monkey · JavaScript · 14 lines · 14 code · 0 blank · 0 comment · 3 complexity · d9a8ccb24c0c138e4793f1f937603c82 MD5 · raw file
- function nestedExit(x) {
- var q = 0;
- for (var i = 0; i < 10; ++i)
- {
- if (x)
- ++q;
- }
- }
- function nestedExitLoop() {
- for (var j = 0; j < 10; ++j)
- nestedExit(j < 7);
- return "ok";
- }
- assertEq(nestedExitLoop(), "ok");