Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PRISM] Fix more bugs in the compiler #8658

Merged
merged 2 commits into from Oct 16, 2023

Conversation

jemmaissroff
Copy link
Contributor

  • Fixes ConstantPathWriteNode
  • Fixes FlipFlopNode

PM_COMPILE(constant_path_write_node->value);
PM_DUP_UNLESS_POPPED;

ID constant_var_name = parse_location_symbol(&constant_path_write_node->target->base.location);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get rid of this method now?

@@ -167,7 +167,8 @@ def test_ConstantPathTargetNode
end

def test_ConstantPathWriteNode
# test_prism_eval("Prism::YCT = 1")
test_prism_eval("Prism::ConstantPathWriteNode= 1")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would make this PCT otherwise it's going to conflict when they run the tests more than once.

And for below ::Prism::PCT

@jemmaissroff jemmaissroff merged commit 728286d into ruby:master Oct 16, 2023
97 checks passed
@jemmaissroff jemmaissroff deleted the compile-bugs branch October 16, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants