diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-05 18:37:01 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-05 19:01:10 -0700 |
commit | 24807a6d8f657b27e0ae6b73e73fa987a0672480 (patch) | |
tree | 778bdee6fa5d25d1390bd291a777fa7ac79ea93e /tools/test-js-optimizer-regs-output.js | |
parent | 0e4a1c01e3f09751c72c57bf9e8bddfc5581bd53 (diff) |
simplify infinite while loops with a break at the end into a do-while with a condition
Diffstat (limited to 'tools/test-js-optimizer-regs-output.js')
-rw-r--r-- | tools/test-js-optimizer-regs-output.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/test-js-optimizer-regs-output.js b/tools/test-js-optimizer-regs-output.js index fe7de5fb..c1c9ec87 100644 --- a/tools/test-js-optimizer-regs-output.js +++ b/tools/test-js-optimizer-regs-output.js @@ -229,4 +229,9 @@ function __ZN14NetworkAddressC1EPKcti(r1) { __ZN14NetworkAddressC2EPKcti(r1); return; } +function looop() { + do { + do_it(); + } while (!condition()); +} |