[macruby-changes] [MacRuby/MacRuby] 438c76: does not take out the exception in `break` node. f...

GitHub noreply at github.com
Fri Mar 16 08:04:13 PDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/MacRuby/MacRuby
  Commit: 438c76f4bf2baac78ce4c6ad8827953b317ce608
      https://github.com/MacRuby/MacRuby/commit/438c76f4bf2baac78ce4c6ad8827953b317ce608
  Author: Watson <watson1978 at gmail.com>
  Date:   2012-03-16 (Fri, 16 Mar 2012)

  Changed paths:
    M compiler.cpp

  Log Message:
  -----------
  does not take out the exception in `break` node. fix the `break` issue of #1484.

it does not escape by `break` from `rescue` block directly.
and the exception is taken out in `rescue` node.

it was too taken out than the number of exception.


  Commit: 3d116e2fa7c13265aa3c9e72352e1c4a7b57d492
      https://github.com/MacRuby/MacRuby/commit/3d116e2fa7c13265aa3c9e72352e1c4a7b57d492
  Author: Watson <watson1978 at gmail.com>
  Date:   2012-03-16 (Fri, 16 Mar 2012)

  Changed paths:
    M compiler.cpp

  Log Message:
  -----------
  does not take out the exception in `next` node. fix the `next` issue of #1484.

it does not escape by `next` from `rescue` block directly.
and the exception is taken out in `rescue` node.

it was too taken out than the number of exception.


  Commit: f6cd823048ef28950e53bb572bb5fa2b0b0805c0
      https://github.com/MacRuby/MacRuby/commit/f6cd823048ef28950e53bb572bb5fa2b0b0805c0
  Author: Watson <watson1978 at gmail.com>
  Date:   2012-03-16 (Fri, 16 Mar 2012)

  Changed paths:
    M compiler.cpp

  Log Message:
  -----------
  does not take out the exception in `return` node within block. fix the `return` issue of #1484.

it does not escape by `return` within block from `rescue` block directly.
and the exception is taken out in `rescue` node.

it was too taken out than the number of exception.

When it escapes by `return` from `rescue` block directly, it need to be taken out exception. (ex: within loop)


Compare: https://github.com/MacRuby/MacRuby/compare/f0ce7e4...f6cd823


More information about the macruby-changes mailing list