Skip to content

Commit

Permalink
Fix compiling shareable constant nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Mar 15, 2024
1 parent f2e96d4 commit 043c90e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions prism_compile.c
Expand Up @@ -7879,6 +7879,11 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret,
PUSH_INSN(ret, location, putself);
}
return;
case PM_SHAREABLE_CONSTANT_NODE:
// A value that is being written to a constant that is being marked as
// shared depending on the current lexical context.
PM_COMPILE(((const pm_shareable_constant_node_t *) node)->write);
return;
case PM_SINGLETON_CLASS_NODE: {
// class << self; end
// ^^^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit 043c90e

Please sign in to comment.