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

define_method(name, Method) does not respect module_function #3181

Closed
eregon opened this issue Jul 25, 2023 · 1 comment
Closed

define_method(name, Method) does not respect module_function #3181

eregon opened this issue Jul 25, 2023 · 1 comment

Comments

@eregon
Copy link
Member

eregon commented Jul 25, 2023

From rack/rack#2099 (comment)

It's because of

module.fields.addMethod(getContext(), this, internalMethod.withName(name));

vs
https://github.com/oracle/truffleruby/blob/a4a32f1556ca3ced88d2ab5a366a2c03bcc91d34/src/main/java/org/truffleruby/core/module/ModuleNodes.java#L1337C25-L1337C25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants