aboutsummaryrefslogtreecommitdiffstats
path: root/prism_compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'prism_compile.c')
-rw-r--r--prism_compile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/prism_compile.c b/prism_compile.c
index 04cdb89ce4..1b55396b0b 100644
--- a/prism_compile.c
+++ b/prism_compile.c
@@ -3658,9 +3658,14 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret,
ADD_GETLOCAL(ret, &dummy_line_node, LVAR_ERRINFO, 0);
PM_COMPILE((pm_node_t *)rescue_node->reference);
}
+
if (rescue_node->statements) {
PM_COMPILE((pm_node_t *)rescue_node->statements);
}
+ else {
+ PM_PUTNIL;
+ }
+
ADD_INSN(ret, &dummy_line_node, leave);
ADD_LABEL(ret, rescue_end);