diff options
author | John Hawthorn <john@hawthorn.email> | 2021-12-14 13:20:45 -0800 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2021-12-14 15:22:51 -0800 |
commit | e307627b6cdafd830680ccf52bf8832c80326935 (patch) | |
tree | 06e42da44b34399b89a933ef899517a78cf976d7 /ast.c | |
parent | b7ae08992f7e4c663b61a3895d29d066fa22e452 (diff) | |
download | ruby-e307627b6cdafd830680ccf52bf8832c80326935.tar.gz |
Don't invalidate BOPs when aliases redefined
Previously when redefining an alias of a BOP, we would unnecessarily
invalidate the bop. For example:
class String
alias len length
private :len
end
This commit avoids this by checking that the called_id on the method
entry matches the original_id on the definition.
Diffstat (limited to 'ast.c')
0 files changed, 0 insertions, 0 deletions