Skip to content

Commit

Permalink
#3735: reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 23, 2024
1 parent 9e9d802 commit 219b645
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions eo-runtime/src/main/java/EOorg/EOeolang/EOtry.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
import org.eolang.Atom;
import org.eolang.Data;
import org.eolang.Dataized;
import org.eolang.PhCopy;
import org.eolang.PhDefault;
import org.eolang.PhWith;
import org.eolang.Phi;
import org.eolang.XmirObject;

Expand Down Expand Up @@ -62,13 +60,9 @@ public Phi lambda() {
try {
result = new Dataized(this.take("main")).take();
} catch (final EOerror.ExError ex) {
result = new Dataized(
new PhWith(
new PhCopy(this.take("catch")),
0,
ex.enclosure()
)
).take();
final Phi catcher = this.take("catch").copy();
catcher.put(0, ex.enclosure());
result = new Dataized(catcher).take();
} finally {
new Dataized(this.take("finally")).take();
}
Expand Down

0 comments on commit 219b645

Please sign in to comment.