Commit fa630f0
committed
Fix rb_define_method(singleton_class_of_module, ...) not to change nested module name
Always track class and singleton class stored to a variable to `@classes`.
Otherwise, `find_class var_name, class_name` called from `handle_method` will add a new class to `@toplevel`.1 parent b0e21ef commit fa630f0
2 files changed
+26
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1054 | 1054 | | |
1055 | 1055 | | |
1056 | 1056 | | |
| 1057 | + | |
1057 | 1058 | | |
1058 | 1059 | | |
1059 | 1060 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
781 | 781 | | |
782 | 782 | | |
783 | 783 | | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
784 | 807 | | |
785 | 808 | | |
786 | 809 | | |
| |||
1973 | 1996 | | |
1974 | 1997 | | |
1975 | 1998 | | |
1976 | | - | |
| 1999 | + | |
| 2000 | + | |
1977 | 2001 | | |
1978 | 2002 | | |
1979 | 2003 | | |
| |||
0 commit comments