https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112017-10-27T13:04:01ZRuby Issue Tracking SystemRuby master - Bug #14061: Top-level return does not execute ensure if the file is loaded pr requiredhttps://redmine.ruby-lang.org/issues/14061?journal_id=676162017-10-27T13:04:01Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/13844">Bug #13844</a>: Toplevel returns should fire ensures</i> added</li></ul> Ruby master - Bug #14061: Top-level return does not execute ensure if the file is loaded pr requiredhttps://redmine.ruby-lang.org/issues/14061?journal_id=676422017-10-31T09:33:32Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset trunk|r60590.</p>
<hr>
<p>compile.c: ensure after return in library toplevel</p>
<ul>
<li>compile.c (compile_return): execute ensure clause after toplevel<br>
return even in library toplevel other than the main script.<br>
<a href="/issues/14061">[ruby-core:83589]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Top-level return does not execute ensure if the file is loaded pr required (Closed)" href="https://redmine.ruby-lang.org/issues/14061">#14061</a>]</li>
</ul>
<p>test</p>